raspberry_games_server_game_logic 1.8.249 → 1.8.253
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-core.js +57 -47
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +10667 -9566
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +63 -51
- package/Logic_Debertz-game_server.js +664 -1797
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +3 -3
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +9 -9
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
var Unit_instance = kotlin_kotlin.$_$.p5;
|
|
45
45
|
var protoOf = kotlin_kotlin.$_$.uc;
|
|
46
46
|
var THROW_CCE = kotlin_kotlin.$_$.rg;
|
|
47
|
-
var ToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
47
|
+
var ToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.a1;
|
|
48
48
|
var initMetadataForLambda = kotlin_kotlin.$_$.xb;
|
|
49
49
|
var VOID = kotlin_kotlin.$_$.f;
|
|
50
|
-
var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
50
|
+
var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.m3;
|
|
51
51
|
var initMetadataForCompanion = kotlin_kotlin.$_$.ub;
|
|
52
52
|
var equals = kotlin_kotlin.$_$.lb;
|
|
53
53
|
var FunctionAdapter = kotlin_kotlin.$_$.za;
|
|
@@ -60,34 +60,36 @@
|
|
|
60
60
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga;
|
|
61
61
|
var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w;
|
|
62
62
|
var Store = kotlin_io_raspberryapps_game_engine_core.$_$.k2;
|
|
63
|
-
var get_isCreated = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
64
|
-
var PlayerReadyFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
65
|
-
var PlayerConnectionState_LOST_CONNECTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
66
|
-
var PlayerConnectionUpdateAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
67
|
-
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
68
|
-
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
63
|
+
var get_isCreated = kotlin_io_raspberryapps_game_engine_engine.$_$.r3;
|
|
64
|
+
var PlayerReadyFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w;
|
|
65
|
+
var PlayerConnectionState_LOST_CONNECTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.k3;
|
|
66
|
+
var PlayerConnectionUpdateAction = kotlin_io_raspberryapps_game_engine_engine.$_$.t2;
|
|
67
|
+
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.j3;
|
|
68
|
+
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.i3;
|
|
69
69
|
var toList = kotlin_kotlin.$_$.t9;
|
|
70
70
|
var getPlayer = kotlin_io_raspberryapps_game_engine_core.$_$.o;
|
|
71
|
-
var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
71
|
+
var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.n4;
|
|
72
72
|
var toMutableList = kotlin_kotlin.$_$.w9;
|
|
73
|
-
var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
74
|
-
var StartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
75
|
-
var RestartRoundReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
76
|
-
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
77
|
-
var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
78
|
-
var SceneEndedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
79
|
-
var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
73
|
+
var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.x2;
|
|
74
|
+
var StartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.l2;
|
|
75
|
+
var RestartRoundReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.m4;
|
|
76
|
+
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.y3;
|
|
77
|
+
var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.x1;
|
|
78
|
+
var SceneEndedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.r2;
|
|
79
|
+
var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.n3;
|
|
80
80
|
var GameErrorReason = kotlin_io_raspberryapps_game_engine_core.$_$.f1;
|
|
81
|
-
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
82
|
-
var
|
|
83
|
-
var
|
|
84
|
-
var
|
|
85
|
-
var
|
|
86
|
-
var
|
|
81
|
+
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.n3;
|
|
82
|
+
var toString = kotlin_kotlin.$_$.yc;
|
|
83
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
84
|
+
var FinishGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z1;
|
|
85
|
+
var ClearAction = kotlin_io_raspberryapps_game_engine_engine.$_$.s2;
|
|
86
|
+
var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.z2;
|
|
87
|
+
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.z3;
|
|
88
|
+
var Reason_DEPLOY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.r3;
|
|
87
89
|
var GameFinishedReason = kotlin_io_raspberryapps_game_engine_core.$_$.g1;
|
|
88
|
-
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
90
|
+
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.p3;
|
|
89
91
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ph;
|
|
90
|
-
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
92
|
+
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.s3;
|
|
91
93
|
var emptyList = kotlin_kotlin.$_$.n7;
|
|
92
94
|
var RaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.g;
|
|
93
95
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
@@ -96,10 +98,10 @@
|
|
|
96
98
|
var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
|
|
97
99
|
var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
|
|
98
100
|
var Instance = kotlin_org_kodein_di_kodein_di.$_$.f;
|
|
99
|
-
var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
101
|
+
var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.t;
|
|
100
102
|
var lazy = kotlin_kotlin.$_$.oh;
|
|
101
103
|
var plus = kotlin_kotlin.$_$.z8;
|
|
102
|
-
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
104
|
+
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.u3;
|
|
103
105
|
var defineProp = kotlin_kotlin.$_$.kb;
|
|
104
106
|
var KProperty1 = kotlin_kotlin.$_$.pd;
|
|
105
107
|
var getPropertyCallableRef = kotlin_kotlin.$_$.qb;
|
|
@@ -108,29 +110,28 @@
|
|
|
108
110
|
var Enum = kotlin_kotlin.$_$.hg;
|
|
109
111
|
var getBooleanHashCode = kotlin_kotlin.$_$.ob;
|
|
110
112
|
var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a;
|
|
111
|
-
var TableLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
113
|
+
var TableLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.k3;
|
|
112
114
|
var RandomPoolProvider = kotlin_io_raspberryapps_cardgame_random.$_$.i;
|
|
113
|
-
var ServerReduxConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
114
|
-
var PlayerTurnMechanicReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
115
|
+
var ServerReduxConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.f;
|
|
116
|
+
var PlayerTurnMechanicReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.j3;
|
|
115
117
|
var IdsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.k1;
|
|
116
|
-
var EngineLogicConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
117
|
-
var jsonModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
118
|
-
var getEngineGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
119
|
-
var MechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
118
|
+
var EngineLogicConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.m;
|
|
119
|
+
var jsonModule = kotlin_io_raspberryapps_game_engine_engine.$_$.p;
|
|
120
|
+
var getEngineGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.o;
|
|
121
|
+
var MechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.i3;
|
|
120
122
|
var Provider = kotlin_org_kodein_di_kodein_di.$_$.c;
|
|
121
123
|
var Singleton = kotlin_org_kodein_di_kodein_di.$_$.d;
|
|
122
|
-
var StoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
123
|
-
var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
124
|
-
var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
124
|
+
var StoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.x2;
|
|
125
|
+
var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.v3;
|
|
126
|
+
var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.t3;
|
|
125
127
|
var initMetadataForInterface = kotlin_kotlin.$_$.wb;
|
|
126
128
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
127
129
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
128
130
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
|
|
129
|
-
var CombinedToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
131
|
+
var CombinedToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.y;
|
|
130
132
|
var single = kotlin_kotlin.$_$.i9;
|
|
131
133
|
var copyToArray = kotlin_kotlin.$_$.i7;
|
|
132
|
-
var ActionDeliveryPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
133
|
-
var toString = kotlin_kotlin.$_$.yc;
|
|
134
|
+
var ActionDeliveryPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.x;
|
|
134
135
|
var getStringHashCode = kotlin_kotlin.$_$.rb;
|
|
135
136
|
var KtList = kotlin_kotlin.$_$.x5;
|
|
136
137
|
var flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
@@ -145,152 +146,120 @@
|
|
|
145
146
|
var flatMapConcat = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
|
|
146
147
|
var get_actionTag = kotlin_io_raspberryapps_game_engine_core.$_$.g2;
|
|
147
148
|
var Action = kotlin_io_raspberryapps_game_engine_core.$_$.h2;
|
|
148
|
-
var ValidationStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
149
|
-
var TimersStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
150
|
-
var BotGameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
151
|
-
var GameMechanicStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
152
|
-
var FileLoggerStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
149
|
+
var ValidationStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.z2;
|
|
150
|
+
var TimersStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.y2;
|
|
151
|
+
var BotGameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.u2;
|
|
152
|
+
var GameMechanicStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.w2;
|
|
153
|
+
var FileLoggerStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.v2;
|
|
153
154
|
var AsyncProvider = kotlin_io_raspberryapps_game_engine_core.$_$.j1;
|
|
154
|
-
var LastCardInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
155
|
-
var EngineBotConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
156
|
-
var ScenePositionProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
155
|
+
var LastCardInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.r;
|
|
156
|
+
var EngineBotConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.l;
|
|
157
|
+
var ScenePositionProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.u;
|
|
157
158
|
var listOf = kotlin_kotlin.$_$.q8;
|
|
158
|
-
var checkBotsMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
159
|
+
var checkBotsMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.g3;
|
|
159
160
|
var listOfNotNull = kotlin_kotlin.$_$.n8;
|
|
160
|
-
var playerConnectionUpdateMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
161
|
-
var playerReconnectionWaitingTimerTickMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
161
|
+
var playerConnectionUpdateMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.c3;
|
|
162
|
+
var playerReconnectionWaitingTimerTickMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.d3;
|
|
162
163
|
var listOfNotNull_0 = kotlin_kotlin.$_$.o8;
|
|
163
|
-
var roundLifecycleMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
164
|
-
var playerTurnTimeoutWhenHostMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
164
|
+
var roundLifecycleMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.a3;
|
|
165
|
+
var playerTurnTimeoutWhenHostMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.e3;
|
|
165
166
|
var listOf_0 = kotlin_kotlin.$_$.p8;
|
|
166
|
-
var clearOnFinishMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
167
|
-
var putPlayerLastCardMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
168
|
-
var RoundEndedAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
167
|
+
var clearOnFinishMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.f3;
|
|
168
|
+
var putPlayerLastCardMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.b3;
|
|
169
|
+
var RoundEndedAction = kotlin_io_raspberryapps_game_engine_engine.$_$.v1;
|
|
169
170
|
var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.i2;
|
|
170
|
-
var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
171
|
-
var RoomActionPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
172
|
-
var mapToClient = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
173
|
-
var PlayerConnectionChangedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
174
|
-
var UserMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
175
|
-
var mapToClient_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
176
|
-
var MessageMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
177
|
-
var mapToClient_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
178
|
-
var WinnerCombinationsMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
179
|
-
var mapToClient_2 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
180
|
-
var PickUpBribeMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
181
|
-
var mapToClient_3 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
182
|
-
var PutCardMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
183
|
-
var mapToClient_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
184
|
-
var CombinationChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
185
|
-
var mapToClient_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
186
|
-
var TrumpMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
187
|
-
var mapToClient_6 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
188
|
-
var SuitChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
189
|
-
var mapToClient_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
190
|
-
var PlayerReadyMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
191
|
-
var getGameCreator = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
171
|
+
var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.b2;
|
|
172
|
+
var RoomActionPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.z;
|
|
173
|
+
var mapToClient = kotlin_io_raspberryapps_game_engine_engine.$_$.k1;
|
|
174
|
+
var PlayerConnectionChangedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.f2;
|
|
175
|
+
var UserMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.g;
|
|
176
|
+
var mapToClient_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.p1;
|
|
177
|
+
var MessageMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.c2;
|
|
178
|
+
var mapToClient_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.i1;
|
|
179
|
+
var WinnerCombinationsMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.q2;
|
|
180
|
+
var mapToClient_2 = kotlin_io_raspberryapps_game_engine_engine.$_$.g1;
|
|
181
|
+
var PickUpBribeMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.e2;
|
|
182
|
+
var mapToClient_3 = kotlin_io_raspberryapps_game_engine_engine.$_$.n1;
|
|
183
|
+
var PutCardMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.h2;
|
|
184
|
+
var mapToClient_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.c1;
|
|
185
|
+
var CombinationChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w1;
|
|
186
|
+
var mapToClient_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.q1;
|
|
187
|
+
var TrumpMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.p2;
|
|
188
|
+
var mapToClient_6 = kotlin_io_raspberryapps_game_engine_engine.$_$.u1;
|
|
189
|
+
var SuitChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.n2;
|
|
190
|
+
var mapToClient_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.t1;
|
|
191
|
+
var PlayerReadyMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.g2;
|
|
192
|
+
var getGameCreator = kotlin_io_raspberryapps_game_engine_engine.$_$.i;
|
|
192
193
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
|
|
193
|
-
var UserActionPayload_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
194
|
-
var mapToClient_8 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
195
|
-
var TeamsDataMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
196
|
-
var mapToClient_9 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
197
|
-
var SceneActMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
198
|
-
var mapToClient_10 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
199
|
-
var SceneMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
200
|
-
var mapToClient_11 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
201
|
-
var ErrorAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
202
|
-
var mapToClient_12 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
203
|
-
var RestartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
204
|
-
var mapToClient_13 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
205
|
-
var mapToClient_14 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
206
|
-
var FinishingGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
207
|
-
var mapToClient_15 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
208
|
-
var mapToClient_16 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
209
|
-
var StartNewGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
210
|
-
var mapToClient_17 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
194
|
+
var UserActionPayload_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.x3;
|
|
195
|
+
var mapToClient_8 = kotlin_io_raspberryapps_game_engine_engine.$_$.r1;
|
|
196
|
+
var TeamsDataMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.o2;
|
|
197
|
+
var mapToClient_9 = kotlin_io_raspberryapps_game_engine_engine.$_$.o1;
|
|
198
|
+
var SceneActMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.j2;
|
|
199
|
+
var mapToClient_10 = kotlin_io_raspberryapps_game_engine_engine.$_$.s1;
|
|
200
|
+
var SceneMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.k2;
|
|
201
|
+
var mapToClient_11 = kotlin_io_raspberryapps_game_engine_engine.$_$.l1;
|
|
202
|
+
var ErrorAction = kotlin_io_raspberryapps_game_engine_engine.$_$.y1;
|
|
203
|
+
var mapToClient_12 = kotlin_io_raspberryapps_game_engine_engine.$_$.e1;
|
|
204
|
+
var RestartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.i2;
|
|
205
|
+
var mapToClient_13 = kotlin_io_raspberryapps_game_engine_engine.$_$.j1;
|
|
206
|
+
var mapToClient_14 = kotlin_io_raspberryapps_game_engine_engine.$_$.m1;
|
|
207
|
+
var FinishingGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.a2;
|
|
208
|
+
var mapToClient_15 = kotlin_io_raspberryapps_game_engine_engine.$_$.f1;
|
|
209
|
+
var mapToClient_16 = kotlin_io_raspberryapps_game_engine_engine.$_$.h1;
|
|
210
|
+
var StartNewGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.m2;
|
|
211
|
+
var mapToClient_17 = kotlin_io_raspberryapps_game_engine_engine.$_$.d1;
|
|
211
212
|
var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.j2;
|
|
212
|
-
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
213
|
-
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
213
|
+
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.d4;
|
|
214
|
+
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.b4;
|
|
214
215
|
var Companion_getInstance = kotlin_kotlin.$_$.g5;
|
|
215
216
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
216
217
|
var toDuration = kotlin_kotlin.$_$.zf;
|
|
217
|
-
var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
218
|
-
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
218
|
+
var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.h3;
|
|
219
|
+
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.w3;
|
|
219
220
|
var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.m;
|
|
220
221
|
var singleOrNull = kotlin_kotlin.$_$.h9;
|
|
221
222
|
var Collection = kotlin_kotlin.$_$.r5;
|
|
222
223
|
var toSet = kotlin_kotlin.$_$.z9;
|
|
223
|
-
var Spectator = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
224
|
-
var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
225
|
-
var
|
|
226
|
-
var isArray = kotlin_kotlin.$_$.zb;
|
|
227
|
-
var get_entries = kotlin_io_raspberryapps_game_engine_engine.$_$.i;
|
|
228
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
229
|
-
var get_entries_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.r;
|
|
230
|
-
var get_entries_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.s;
|
|
231
|
-
var getUserProfilePayloadOrNull = kotlin_io_raspberryapps_game_engine_engine.$_$.h;
|
|
232
|
-
var Companion_instance_3 = kotlin_io_raspberryapps_game_engine_engine.$_$.v4;
|
|
233
|
-
var Config = kotlin_io_raspberryapps_game_engine_engine.$_$.q;
|
|
234
|
-
var PointsMode_SMALL_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.o4;
|
|
235
|
-
var PointsMode_MEDIUM_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.n4;
|
|
236
|
-
var PointsMode_BIG_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.m4;
|
|
237
|
-
var PointsMode_TEST_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.p4;
|
|
238
|
-
var PlayersMode_TWO_PLAYERS_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.l4;
|
|
239
|
-
var PlayersMode_THREE_PLAYERS_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.k4;
|
|
240
|
-
var PlayersMode_FOUR_PLAYERS_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.j4;
|
|
241
|
-
var PlayersMode_FOUR_PLAYERS_BY_TEAM_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.i4;
|
|
242
|
-
var Rules = kotlin_io_raspberryapps_game_engine_engine.$_$.k;
|
|
243
|
-
var mapOfObject = kotlin_io_raspberryapps_game_engine_core.$_$.t2;
|
|
244
|
-
var toRoundContractType = kotlin_io_raspberryapps_game_engine_engine.$_$.p;
|
|
245
|
-
var Companion_getInstance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.s4;
|
|
246
|
-
var toBidType = kotlin_io_raspberryapps_game_engine_engine.$_$.n;
|
|
247
|
-
var mapToCombinationType = kotlin_io_raspberryapps_game_engine_engine.$_$.l;
|
|
248
|
-
var Companion_getInstance_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.u4;
|
|
249
|
-
var toPointsDistributeMode = kotlin_io_raspberryapps_game_engine_engine.$_$.o;
|
|
250
|
-
var PointsDistributeMode_HIGHEST_PLAYER_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.h4;
|
|
251
|
-
var PointsDistributeMode_ALL_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.g4;
|
|
252
|
-
var getValue = kotlin_kotlin.$_$.a8;
|
|
253
|
-
var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.t4;
|
|
254
|
-
var valueOf = kotlin_io_raspberryapps_game_engine_engine.$_$.j;
|
|
255
|
-
var Default_getInstance = kotlin_kotlin.$_$.d5;
|
|
256
|
-
var GameUserInfo = kotlin_io_raspberryapps_game_engine_core.$_$.c;
|
|
257
|
-
var DealerConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.u;
|
|
224
|
+
var Spectator = kotlin_io_raspberryapps_game_engine_engine.$_$.h;
|
|
225
|
+
var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.l3;
|
|
226
|
+
var DealerConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.k;
|
|
258
227
|
var CoreConfig = kotlin_io_raspberryapps_game_engine_core.$_$.e1;
|
|
259
228
|
var RandomOrgConfig = kotlin_io_raspberryapps_cardgame_random.$_$.b;
|
|
260
|
-
var
|
|
261
|
-
var LoggerCallbacksWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
229
|
+
var Companion_instance_3 = kotlin_org_kodein_di_kodein_di.$_$.b;
|
|
230
|
+
var LoggerCallbacksWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.c;
|
|
262
231
|
var mutableListOf = kotlin_kotlin.$_$.v8;
|
|
263
232
|
var CombinedRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.c;
|
|
264
233
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
265
234
|
var randomOrgModule = kotlin_io_raspberryapps_game_engine_core.$_$.p1;
|
|
266
|
-
var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
267
|
-
var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
268
|
-
var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
269
|
-
var
|
|
270
|
-
var
|
|
271
|
-
var toLoggerPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
235
|
+
var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.q3;
|
|
236
|
+
var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.p3;
|
|
237
|
+
var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.o3;
|
|
238
|
+
var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.b4;
|
|
239
|
+
var Companion_instance_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.a4;
|
|
240
|
+
var toLoggerPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.j;
|
|
272
241
|
var combinedLoggerModule = kotlin_io_raspberryapps_game_engine_core.$_$.m1;
|
|
273
242
|
var dealerModule = kotlin_io_raspberryapps_game_engine_core.$_$.o1;
|
|
274
243
|
var coreModule = kotlin_io_raspberryapps_game_engine_core.$_$.n1;
|
|
275
|
-
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
276
|
-
var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
277
|
-
var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
278
|
-
var ParserHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
244
|
+
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.p4;
|
|
245
|
+
var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.z3;
|
|
246
|
+
var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.a4;
|
|
247
|
+
var ParserHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.d;
|
|
248
|
+
var GameHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.a;
|
|
249
|
+
var GameResources = kotlin_io_raspberryapps_game_engine_engine.$_$.b;
|
|
279
250
|
var Logger_getInstance = kotlin_io_raspberryapps_cardgame_logger.$_$.m;
|
|
280
|
-
var
|
|
251
|
+
var Companion_instance_6 = kotlin_io_raspberryapps_cardgame_logger.$_$.n;
|
|
281
252
|
var toList_0 = kotlin_kotlin.$_$.s9;
|
|
282
253
|
var middleware = kotlin_io_raspberryapps_game_engine_core.$_$.m2;
|
|
283
254
|
var get_direct = kotlin_org_kodein_di_kodein_di.$_$.g;
|
|
284
|
-
var
|
|
285
|
-
var RoomConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.a5;
|
|
286
|
-
var get_botGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.x;
|
|
255
|
+
var get_botGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.n;
|
|
287
256
|
var emptyMap = kotlin_kotlin.$_$.o7;
|
|
288
|
-
var PlayerAnswerInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
289
|
-
var FromClientActionPayloadProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
290
|
-
var mapFromClient = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
291
|
-
var NextPlayerTurnAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
292
|
-
var get_ratingModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
293
|
-
var engineHelpersModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
257
|
+
var PlayerAnswerInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.s;
|
|
258
|
+
var FromClientActionPayloadProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.v;
|
|
259
|
+
var mapFromClient = kotlin_io_raspberryapps_game_engine_engine.$_$.b1;
|
|
260
|
+
var NextPlayerTurnAction = kotlin_io_raspberryapps_game_engine_engine.$_$.d2;
|
|
261
|
+
var get_ratingModule = kotlin_io_raspberryapps_game_engine_engine.$_$.q;
|
|
262
|
+
var engineHelpersModule = kotlin_io_raspberryapps_game_engine_engine.$_$.e;
|
|
294
263
|
//endregion
|
|
295
264
|
//region block: pre-declaration
|
|
296
265
|
initMetadataForLambda(GameServer$subscribeToClientAction$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -312,7 +281,8 @@
|
|
|
312
281
|
initMetadataForLambda(GameServer$roomOnDelete$slambda, CoroutineImpl, VOID, [2]);
|
|
313
282
|
initMetadataForLambda(GameServer$setCanStartNewGameEnabled$slambda, CoroutineImpl, VOID, [2]);
|
|
314
283
|
initMetadataForLambda(GameServer$shutdown$slambda, CoroutineImpl, VOID, [2]);
|
|
315
|
-
function roomOnCreate(roomId, gameCreatorId, config, users, spectators, $super) {
|
|
284
|
+
function roomOnCreate(roomId, gameCreatorId, config, users, transition, spectators, $super) {
|
|
285
|
+
transition = transition === VOID ? null : transition;
|
|
316
286
|
var tmp;
|
|
317
287
|
if (spectators === VOID) {
|
|
318
288
|
// Inline function 'kotlin.emptyArray' call
|
|
@@ -321,15 +291,15 @@
|
|
|
321
291
|
tmp = spectators;
|
|
322
292
|
}
|
|
323
293
|
spectators = tmp;
|
|
324
|
-
return this.
|
|
294
|
+
return this.q9d(roomId, gameCreatorId, config, users, transition, spectators);
|
|
325
295
|
}
|
|
326
296
|
function roomOnDelete(newRid, $super) {
|
|
327
297
|
newRid = newRid === VOID ? null : newRid;
|
|
328
|
-
return this.
|
|
298
|
+
return this.r9d(newRid);
|
|
329
299
|
}
|
|
330
300
|
function shutdown(reason, roomId, $super) {
|
|
331
301
|
roomId = roomId === VOID ? null : roomId;
|
|
332
|
-
return this.
|
|
302
|
+
return this.s9d(reason, roomId);
|
|
333
303
|
}
|
|
334
304
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
335
305
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -358,24 +328,6 @@
|
|
|
358
328
|
initMetadataForClass(_no_name_provided__qut3iv_3, VOID, VOID, VOID, [Reducer]);
|
|
359
329
|
initMetadataForCompanion(Companion_1);
|
|
360
330
|
initMetadataForClass(ServerState, 'ServerState', VOID, VOID, [AppStatePayload]);
|
|
361
|
-
initMetadataForInterface(GameHelper, 'GameHelper');
|
|
362
|
-
initMetadataForClass(GameHelperImpl, 'GameHelperImpl', GameHelperImpl, VOID, [GameHelper]);
|
|
363
|
-
function createBotUser(playerId, existingNicknames, $super) {
|
|
364
|
-
var tmp;
|
|
365
|
-
if (existingNicknames === VOID) {
|
|
366
|
-
// Inline function 'kotlin.emptyArray' call
|
|
367
|
-
tmp = [];
|
|
368
|
-
} else {
|
|
369
|
-
tmp = existingNicknames;
|
|
370
|
-
}
|
|
371
|
-
existingNicknames = tmp;
|
|
372
|
-
return this.w9g(playerId, existingNicknames);
|
|
373
|
-
}
|
|
374
|
-
initMetadataForInterface(GameResources, 'GameResources');
|
|
375
|
-
initMetadataForCompanion(Companion_2);
|
|
376
|
-
initMetadataForClass(AvatarSet, 'AvatarSet', VOID, Enum);
|
|
377
|
-
initMetadataForClass(AvatarData, 'AvatarData');
|
|
378
|
-
initMetadataForClass(GameResourcesImpl, 'GameResourcesImpl', GameResourcesImpl, VOID, [GameResources]);
|
|
379
331
|
function createGameEngineWithLogic(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig, $super) {
|
|
380
332
|
var tmp;
|
|
381
333
|
if (reducers === VOID) {
|
|
@@ -397,7 +349,7 @@
|
|
|
397
349
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
398
350
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
399
351
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
400
|
-
return this.
|
|
352
|
+
return this.y9h(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
401
353
|
}
|
|
402
354
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
403
355
|
initMetadataForClass(_no_name_provided__qut3iv_4, VOID, VOID, VOID, [Reducer]);
|
|
@@ -406,17 +358,17 @@
|
|
|
406
358
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
407
359
|
//endregion
|
|
408
360
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
409
|
-
this.
|
|
361
|
+
this.c96_1 = $subscriber;
|
|
410
362
|
CoroutineImpl.call(this, resultContinuation);
|
|
411
363
|
}
|
|
412
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
413
|
-
var tmp = this.
|
|
364
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).e96 = function (it, $completion) {
|
|
365
|
+
var tmp = this.f96(it, $completion);
|
|
414
366
|
tmp.g9_1 = Unit_instance;
|
|
415
367
|
tmp.h9_1 = null;
|
|
416
368
|
return tmp.m9();
|
|
417
369
|
};
|
|
418
370
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).w9 = function (p1, $completion) {
|
|
419
|
-
return this.
|
|
371
|
+
return this.e96(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
420
372
|
};
|
|
421
373
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).m9 = function () {
|
|
422
374
|
var suspendResult = this.g9_1;
|
|
@@ -425,7 +377,7 @@
|
|
|
425
377
|
var tmp = this.e9_1;
|
|
426
378
|
if (tmp === 0) {
|
|
427
379
|
this.f9_1 = 1;
|
|
428
|
-
this.
|
|
380
|
+
this.c96_1(this.d96_1);
|
|
429
381
|
return Unit_instance;
|
|
430
382
|
} else if (tmp === 1) {
|
|
431
383
|
throw this.h9_1;
|
|
@@ -436,31 +388,31 @@
|
|
|
436
388
|
}
|
|
437
389
|
while (true);
|
|
438
390
|
};
|
|
439
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
440
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
441
|
-
i.
|
|
391
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).f96 = function (it, completion) {
|
|
392
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.c96_1, completion);
|
|
393
|
+
i.d96_1 = it;
|
|
442
394
|
return i;
|
|
443
395
|
};
|
|
444
396
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
445
397
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
446
398
|
var l = function (it, $completion) {
|
|
447
|
-
return i.
|
|
399
|
+
return i.e96(it, $completion);
|
|
448
400
|
};
|
|
449
401
|
l.$arity = 1;
|
|
450
402
|
return l;
|
|
451
403
|
}
|
|
452
404
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
453
|
-
this.
|
|
405
|
+
this.o96_1 = $subscriber;
|
|
454
406
|
CoroutineImpl.call(this, resultContinuation);
|
|
455
407
|
}
|
|
456
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
457
|
-
var tmp = this.
|
|
408
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).q96 = function (it, $completion) {
|
|
409
|
+
var tmp = this.r96(it, $completion);
|
|
458
410
|
tmp.g9_1 = Unit_instance;
|
|
459
411
|
tmp.h9_1 = null;
|
|
460
412
|
return tmp.m9();
|
|
461
413
|
};
|
|
462
414
|
protoOf(GameServer$subscribeWith$slambda$slambda).w9 = function (p1, $completion) {
|
|
463
|
-
return this.
|
|
415
|
+
return this.q96(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
464
416
|
};
|
|
465
417
|
protoOf(GameServer$subscribeWith$slambda$slambda).m9 = function () {
|
|
466
418
|
var suspendResult = this.g9_1;
|
|
@@ -469,7 +421,7 @@
|
|
|
469
421
|
var tmp = this.e9_1;
|
|
470
422
|
if (tmp === 0) {
|
|
471
423
|
this.f9_1 = 1;
|
|
472
|
-
this.
|
|
424
|
+
this.o96_1(this.p96_1);
|
|
473
425
|
return Unit_instance;
|
|
474
426
|
} else if (tmp === 1) {
|
|
475
427
|
throw this.h9_1;
|
|
@@ -480,58 +432,58 @@
|
|
|
480
432
|
}
|
|
481
433
|
while (true);
|
|
482
434
|
};
|
|
483
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
484
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
485
|
-
i.
|
|
435
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).r96 = function (it, completion) {
|
|
436
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.o96_1, completion);
|
|
437
|
+
i.p96_1 = it;
|
|
486
438
|
return i;
|
|
487
439
|
};
|
|
488
440
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
489
441
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
490
442
|
var l = function (it, $completion) {
|
|
491
|
-
return i.
|
|
443
|
+
return i.q96(it, $completion);
|
|
492
444
|
};
|
|
493
445
|
l.$arity = 1;
|
|
494
446
|
return l;
|
|
495
447
|
}
|
|
496
448
|
function _get_logger__rkp4sl($this) {
|
|
497
449
|
// Inline function 'kotlin.getValue' call
|
|
498
|
-
var this_0 = $this.
|
|
450
|
+
var this_0 = $this.u96_1;
|
|
499
451
|
logger$factory_0();
|
|
500
452
|
return this_0.u();
|
|
501
453
|
}
|
|
502
454
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
503
455
|
// Inline function 'kotlin.getValue' call
|
|
504
|
-
var this_0 = $this.
|
|
456
|
+
var this_0 = $this.v96_1;
|
|
505
457
|
toClientEventsObserver$factory_0();
|
|
506
458
|
return this_0.u();
|
|
507
459
|
}
|
|
508
460
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
509
461
|
// Inline function 'kotlin.getValue' call
|
|
510
|
-
var this_0 = $this.
|
|
462
|
+
var this_0 = $this.w96_1;
|
|
511
463
|
playerConnectionInteractor$factory_0();
|
|
512
464
|
return this_0.u();
|
|
513
465
|
}
|
|
514
466
|
function _get_random__h29cgo($this) {
|
|
515
467
|
// Inline function 'kotlin.getValue' call
|
|
516
|
-
var this_0 = $this.
|
|
468
|
+
var this_0 = $this.x96_1;
|
|
517
469
|
random$factory();
|
|
518
470
|
return this_0.u();
|
|
519
471
|
}
|
|
520
472
|
function Companion() {
|
|
521
|
-
this.
|
|
473
|
+
this.z96_1 = 'GameEngine_API';
|
|
522
474
|
}
|
|
523
|
-
var
|
|
524
|
-
function
|
|
525
|
-
return
|
|
475
|
+
var Companion_instance_7;
|
|
476
|
+
function Companion_getInstance_0() {
|
|
477
|
+
return Companion_instance_7;
|
|
526
478
|
}
|
|
527
479
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
528
|
-
this.
|
|
480
|
+
this.a97_1 = function_0;
|
|
529
481
|
}
|
|
530
482
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p18 = function (value, $completion) {
|
|
531
|
-
return this.
|
|
483
|
+
return this.a97_1(value, $completion);
|
|
532
484
|
};
|
|
533
485
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o3 = function () {
|
|
534
|
-
return this.
|
|
486
|
+
return this.a97_1;
|
|
535
487
|
};
|
|
536
488
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
537
489
|
var tmp;
|
|
@@ -552,13 +504,13 @@
|
|
|
552
504
|
return hashCode(this.o3());
|
|
553
505
|
};
|
|
554
506
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
555
|
-
this.
|
|
507
|
+
this.b97_1 = function_0;
|
|
556
508
|
}
|
|
557
509
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
|
|
558
|
-
return this.
|
|
510
|
+
return this.b97_1(value, $completion);
|
|
559
511
|
};
|
|
560
512
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
|
|
561
|
-
return this.
|
|
513
|
+
return this.b97_1;
|
|
562
514
|
};
|
|
563
515
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
564
516
|
var tmp;
|
|
@@ -584,8 +536,8 @@
|
|
|
584
536
|
};
|
|
585
537
|
}
|
|
586
538
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
539
|
+
this.k97_1 = this$0;
|
|
540
|
+
this.l97_1 = $subscriber;
|
|
589
541
|
CoroutineImpl.call(this, resultContinuation);
|
|
590
542
|
}
|
|
591
543
|
protoOf(GameServer$subscribeToClientAction$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -606,8 +558,8 @@
|
|
|
606
558
|
case 0:
|
|
607
559
|
this.f9_1 = 2;
|
|
608
560
|
this.e9_1 = 1;
|
|
609
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
610
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
561
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.k97_1).n97();
|
|
562
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.l97_1, null);
|
|
611
563
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
612
564
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
613
565
|
return suspendResult;
|
|
@@ -631,8 +583,8 @@
|
|
|
631
583
|
while (true);
|
|
632
584
|
};
|
|
633
585
|
protoOf(GameServer$subscribeToClientAction$slambda).i1d = function ($this$launchDefault, completion) {
|
|
634
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
635
|
-
i.
|
|
586
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.k97_1, this.l97_1, completion);
|
|
587
|
+
i.m97_1 = $this$launchDefault;
|
|
636
588
|
return i;
|
|
637
589
|
};
|
|
638
590
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -644,8 +596,8 @@
|
|
|
644
596
|
return l;
|
|
645
597
|
}
|
|
646
598
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
647
|
-
this.
|
|
648
|
-
this.
|
|
599
|
+
this.w97_1 = this$0;
|
|
600
|
+
this.x97_1 = $subscriber;
|
|
649
601
|
CoroutineImpl.call(this, resultContinuation);
|
|
650
602
|
}
|
|
651
603
|
protoOf(GameServer$subscribeWith$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -666,8 +618,8 @@
|
|
|
666
618
|
case 0:
|
|
667
619
|
this.f9_1 = 2;
|
|
668
620
|
this.e9_1 = 1;
|
|
669
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
670
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
621
|
+
var tmp_0 = distinctUntilChanged(this.w97_1.x6l());
|
|
622
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.x97_1, null);
|
|
671
623
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
672
624
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
673
625
|
return suspendResult;
|
|
@@ -691,8 +643,8 @@
|
|
|
691
643
|
while (true);
|
|
692
644
|
};
|
|
693
645
|
protoOf(GameServer$subscribeWith$slambda).i1d = function ($this$launchDefault, completion) {
|
|
694
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
695
|
-
i.
|
|
646
|
+
var i = new GameServer$subscribeWith$slambda(this.w97_1, this.x97_1, completion);
|
|
647
|
+
i.y97_1 = $this$launchDefault;
|
|
696
648
|
return i;
|
|
697
649
|
};
|
|
698
650
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -704,18 +656,18 @@
|
|
|
704
656
|
return l;
|
|
705
657
|
}
|
|
706
658
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
707
|
-
this.
|
|
659
|
+
this.h98_1 = $action;
|
|
708
660
|
CoroutineImpl.call(this, resultContinuation);
|
|
709
661
|
}
|
|
710
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
711
|
-
var tmp = this.
|
|
662
|
+
protoOf(GameServer$fromClientEvent$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
663
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
712
664
|
tmp.g9_1 = Unit_instance;
|
|
713
665
|
tmp.h9_1 = null;
|
|
714
666
|
return tmp.m9();
|
|
715
667
|
};
|
|
716
668
|
protoOf(GameServer$fromClientEvent$slambda).x9 = function (p1, p2, $completion) {
|
|
717
669
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
718
|
-
return this.
|
|
670
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
719
671
|
};
|
|
720
672
|
protoOf(GameServer$fromClientEvent$slambda).m9 = function () {
|
|
721
673
|
var suspendResult = this.g9_1;
|
|
@@ -724,11 +676,11 @@
|
|
|
724
676
|
var tmp = this.e9_1;
|
|
725
677
|
if (tmp === 0) {
|
|
726
678
|
this.f9_1 = 1;
|
|
727
|
-
if (this.
|
|
728
|
-
if (!get_isCreated(this.
|
|
679
|
+
if (this.h98_1 instanceof PlayerReadyFromClientAction)
|
|
680
|
+
if (!get_isCreated(this.j98_1.state)) {
|
|
729
681
|
return Unit_instance;
|
|
730
682
|
}
|
|
731
|
-
this.
|
|
683
|
+
this.j98_1.dispatch(this.h98_1);
|
|
732
684
|
return Unit_instance;
|
|
733
685
|
} else if (tmp === 1) {
|
|
734
686
|
throw this.h9_1;
|
|
@@ -739,33 +691,33 @@
|
|
|
739
691
|
}
|
|
740
692
|
while (true);
|
|
741
693
|
};
|
|
742
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
743
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
744
|
-
i.
|
|
745
|
-
i.
|
|
694
|
+
protoOf(GameServer$fromClientEvent$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
695
|
+
var i = new GameServer$fromClientEvent$slambda(this.h98_1, completion);
|
|
696
|
+
i.i98_1 = $this$dispatchAsync;
|
|
697
|
+
i.j98_1 = store;
|
|
746
698
|
return i;
|
|
747
699
|
};
|
|
748
700
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
749
701
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
750
702
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
751
|
-
return i.
|
|
703
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
752
704
|
};
|
|
753
705
|
l.$arity = 2;
|
|
754
706
|
return l;
|
|
755
707
|
}
|
|
756
708
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
757
|
-
this.
|
|
709
|
+
this.u98_1 = $playerId;
|
|
758
710
|
CoroutineImpl.call(this, resultContinuation);
|
|
759
711
|
}
|
|
760
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
761
|
-
var tmp = this.
|
|
712
|
+
protoOf(GameServer$playerLostConnection$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
713
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
762
714
|
tmp.g9_1 = Unit_instance;
|
|
763
715
|
tmp.h9_1 = null;
|
|
764
716
|
return tmp.m9();
|
|
765
717
|
};
|
|
766
718
|
protoOf(GameServer$playerLostConnection$slambda).x9 = function (p1, p2, $completion) {
|
|
767
719
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
768
|
-
return this.
|
|
720
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
769
721
|
};
|
|
770
722
|
protoOf(GameServer$playerLostConnection$slambda).m9 = function () {
|
|
771
723
|
var suspendResult = this.g9_1;
|
|
@@ -774,12 +726,12 @@
|
|
|
774
726
|
var tmp = this.e9_1;
|
|
775
727
|
if (tmp === 0) {
|
|
776
728
|
this.f9_1 = 1;
|
|
777
|
-
if (!get_isCreated(this.
|
|
729
|
+
if (!get_isCreated(this.w98_1.state)) {
|
|
778
730
|
return Unit_instance;
|
|
779
731
|
}
|
|
780
|
-
var tmp_0 = this.
|
|
732
|
+
var tmp_0 = this.w98_1.dispatch;
|
|
781
733
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
782
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
734
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.u98_1));
|
|
783
735
|
return Unit_instance;
|
|
784
736
|
} else if (tmp === 1) {
|
|
785
737
|
throw this.h9_1;
|
|
@@ -790,33 +742,33 @@
|
|
|
790
742
|
}
|
|
791
743
|
while (true);
|
|
792
744
|
};
|
|
793
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
794
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
795
|
-
i.
|
|
796
|
-
i.
|
|
745
|
+
protoOf(GameServer$playerLostConnection$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
746
|
+
var i = new GameServer$playerLostConnection$slambda(this.u98_1, completion);
|
|
747
|
+
i.v98_1 = $this$dispatchAsync;
|
|
748
|
+
i.w98_1 = store;
|
|
797
749
|
return i;
|
|
798
750
|
};
|
|
799
751
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
800
752
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
801
753
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
802
|
-
return i.
|
|
754
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
803
755
|
};
|
|
804
756
|
l.$arity = 2;
|
|
805
757
|
return l;
|
|
806
758
|
}
|
|
807
759
|
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
808
|
-
this.
|
|
760
|
+
this.f99_1 = $playerId;
|
|
809
761
|
CoroutineImpl.call(this, resultContinuation);
|
|
810
762
|
}
|
|
811
|
-
protoOf(GameServer$playerLive$slambda).
|
|
812
|
-
var tmp = this.
|
|
763
|
+
protoOf(GameServer$playerLive$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
764
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
813
765
|
tmp.g9_1 = Unit_instance;
|
|
814
766
|
tmp.h9_1 = null;
|
|
815
767
|
return tmp.m9();
|
|
816
768
|
};
|
|
817
769
|
protoOf(GameServer$playerLive$slambda).x9 = function (p1, p2, $completion) {
|
|
818
770
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
819
|
-
return this.
|
|
771
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
820
772
|
};
|
|
821
773
|
protoOf(GameServer$playerLive$slambda).m9 = function () {
|
|
822
774
|
var suspendResult = this.g9_1;
|
|
@@ -825,9 +777,9 @@
|
|
|
825
777
|
var tmp = this.e9_1;
|
|
826
778
|
if (tmp === 0) {
|
|
827
779
|
this.f9_1 = 1;
|
|
828
|
-
var tmp_0 = this.
|
|
780
|
+
var tmp_0 = this.h99_1.dispatch;
|
|
829
781
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
830
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
782
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.f99_1));
|
|
831
783
|
return Unit_instance;
|
|
832
784
|
} else if (tmp === 1) {
|
|
833
785
|
throw this.h9_1;
|
|
@@ -838,33 +790,33 @@
|
|
|
838
790
|
}
|
|
839
791
|
while (true);
|
|
840
792
|
};
|
|
841
|
-
protoOf(GameServer$playerLive$slambda).
|
|
842
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
843
|
-
i.
|
|
844
|
-
i.
|
|
793
|
+
protoOf(GameServer$playerLive$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
794
|
+
var i = new GameServer$playerLive$slambda(this.f99_1, completion);
|
|
795
|
+
i.g99_1 = $this$dispatchAsync;
|
|
796
|
+
i.h99_1 = store;
|
|
845
797
|
return i;
|
|
846
798
|
};
|
|
847
799
|
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
848
800
|
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
849
801
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
850
|
-
return i.
|
|
802
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
851
803
|
};
|
|
852
804
|
l.$arity = 2;
|
|
853
805
|
return l;
|
|
854
806
|
}
|
|
855
807
|
function GameServer$playerLeft$slambda($playerId, resultContinuation) {
|
|
856
|
-
this.
|
|
808
|
+
this.q99_1 = $playerId;
|
|
857
809
|
CoroutineImpl.call(this, resultContinuation);
|
|
858
810
|
}
|
|
859
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
860
|
-
var tmp = this.
|
|
811
|
+
protoOf(GameServer$playerLeft$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
812
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
861
813
|
tmp.g9_1 = Unit_instance;
|
|
862
814
|
tmp.h9_1 = null;
|
|
863
815
|
return tmp.m9();
|
|
864
816
|
};
|
|
865
817
|
protoOf(GameServer$playerLeft$slambda).x9 = function (p1, p2, $completion) {
|
|
866
818
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
867
|
-
return this.
|
|
819
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
868
820
|
};
|
|
869
821
|
protoOf(GameServer$playerLeft$slambda).m9 = function () {
|
|
870
822
|
var suspendResult = this.g9_1;
|
|
@@ -873,9 +825,9 @@
|
|
|
873
825
|
var tmp = this.e9_1;
|
|
874
826
|
if (tmp === 0) {
|
|
875
827
|
this.f9_1 = 1;
|
|
876
|
-
var tmp_0 = this.
|
|
828
|
+
var tmp_0 = this.s99_1.dispatch;
|
|
877
829
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
878
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
830
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.q99_1));
|
|
879
831
|
return Unit_instance;
|
|
880
832
|
} else if (tmp === 1) {
|
|
881
833
|
throw this.h9_1;
|
|
@@ -886,38 +838,38 @@
|
|
|
886
838
|
}
|
|
887
839
|
while (true);
|
|
888
840
|
};
|
|
889
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
890
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
891
|
-
i.
|
|
892
|
-
i.
|
|
841
|
+
protoOf(GameServer$playerLeft$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
842
|
+
var i = new GameServer$playerLeft$slambda(this.q99_1, completion);
|
|
843
|
+
i.r99_1 = $this$dispatchAsync;
|
|
844
|
+
i.s99_1 = store;
|
|
893
845
|
return i;
|
|
894
846
|
};
|
|
895
847
|
function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
|
|
896
848
|
var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
|
|
897
849
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
898
|
-
return i.
|
|
850
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
899
851
|
};
|
|
900
852
|
l.$arity = 2;
|
|
901
853
|
return l;
|
|
902
854
|
}
|
|
903
855
|
function GameServer$roomOnCreate$slambda($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation) {
|
|
904
|
-
this.
|
|
905
|
-
this.
|
|
906
|
-
this.
|
|
907
|
-
this.
|
|
908
|
-
this.
|
|
909
|
-
this.
|
|
856
|
+
this.b9a_1 = $users;
|
|
857
|
+
this.c9a_1 = $gameCreatorId;
|
|
858
|
+
this.d9a_1 = this$0;
|
|
859
|
+
this.e9a_1 = $spectators;
|
|
860
|
+
this.f9a_1 = $config;
|
|
861
|
+
this.g9a_1 = $roomId;
|
|
910
862
|
CoroutineImpl.call(this, resultContinuation);
|
|
911
863
|
}
|
|
912
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
913
|
-
var tmp = this.
|
|
864
|
+
protoOf(GameServer$roomOnCreate$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
865
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
914
866
|
tmp.g9_1 = Unit_instance;
|
|
915
867
|
tmp.h9_1 = null;
|
|
916
868
|
return tmp.m9();
|
|
917
869
|
};
|
|
918
870
|
protoOf(GameServer$roomOnCreate$slambda).x9 = function (p1, p2, $completion) {
|
|
919
871
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
920
|
-
return this.
|
|
872
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
921
873
|
};
|
|
922
874
|
protoOf(GameServer$roomOnCreate$slambda).m9 = function () {
|
|
923
875
|
var suspendResult = this.g9_1;
|
|
@@ -926,13 +878,13 @@
|
|
|
926
878
|
var tmp = this.e9_1;
|
|
927
879
|
if (tmp === 0) {
|
|
928
880
|
this.f9_1 = 1;
|
|
929
|
-
var usersList = toList(this.
|
|
930
|
-
var gameCreatorUser = getPlayer(usersList, this.
|
|
931
|
-
var tmp_0 = this.
|
|
881
|
+
var usersList = toList(this.b9a_1);
|
|
882
|
+
var gameCreatorUser = getPlayer(usersList, this.c9a_1);
|
|
883
|
+
var tmp_0 = this.i9a_1.dispatch;
|
|
932
884
|
var tmp0_version = GameEngineConfig_instance.version;
|
|
933
|
-
var tmp1_users = sortWithItem(_get_random__h29cgo(this.
|
|
934
|
-
var tmp2_spectators = toList(this.
|
|
935
|
-
tmp_0(new StartGameMechanicAction(this.
|
|
885
|
+
var tmp1_users = sortWithItem(_get_random__h29cgo(this.d9a_1).s5s(toMutableList(usersList)), gameCreatorUser);
|
|
886
|
+
var tmp2_spectators = toList(this.e9a_1);
|
|
887
|
+
tmp_0(new StartGameMechanicAction(this.f9a_1, this.g9a_1, tmp0_version, this.c9a_1, tmp1_users, VOID, tmp2_spectators));
|
|
936
888
|
return Unit_instance;
|
|
937
889
|
} else if (tmp === 1) {
|
|
938
890
|
throw this.h9_1;
|
|
@@ -943,33 +895,33 @@
|
|
|
943
895
|
}
|
|
944
896
|
while (true);
|
|
945
897
|
};
|
|
946
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
947
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
948
|
-
i.
|
|
949
|
-
i.
|
|
898
|
+
protoOf(GameServer$roomOnCreate$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
899
|
+
var i = new GameServer$roomOnCreate$slambda(this.b9a_1, this.c9a_1, this.d9a_1, this.e9a_1, this.f9a_1, this.g9a_1, completion);
|
|
900
|
+
i.h9a_1 = $this$dispatchAsync;
|
|
901
|
+
i.i9a_1 = store;
|
|
950
902
|
return i;
|
|
951
903
|
};
|
|
952
904
|
function GameServer$roomOnCreate$slambda_0($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation) {
|
|
953
905
|
var i = new GameServer$roomOnCreate$slambda($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation);
|
|
954
906
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
955
|
-
return i.
|
|
907
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
956
908
|
};
|
|
957
909
|
l.$arity = 2;
|
|
958
910
|
return l;
|
|
959
911
|
}
|
|
960
912
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation) {
|
|
961
|
-
this.
|
|
913
|
+
this.r9a_1 = $tableLite;
|
|
962
914
|
CoroutineImpl.call(this, resultContinuation);
|
|
963
915
|
}
|
|
964
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
965
|
-
var tmp = this.
|
|
916
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
917
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
966
918
|
tmp.g9_1 = Unit_instance;
|
|
967
919
|
tmp.h9_1 = null;
|
|
968
920
|
return tmp.m9();
|
|
969
921
|
};
|
|
970
922
|
protoOf(GameServer$roomOnContinueFromRound$slambda).x9 = function (p1, p2, $completion) {
|
|
971
923
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
972
|
-
return this.
|
|
924
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
973
925
|
};
|
|
974
926
|
protoOf(GameServer$roomOnContinueFromRound$slambda).m9 = function () {
|
|
975
927
|
var suspendResult = this.g9_1;
|
|
@@ -978,11 +930,11 @@
|
|
|
978
930
|
var tmp = this.e9_1;
|
|
979
931
|
if (tmp === 0) {
|
|
980
932
|
this.f9_1 = 1;
|
|
981
|
-
var tmp_0 = this.
|
|
933
|
+
var tmp_0 = this.t9a_1.dispatch;
|
|
982
934
|
var tmp0_reason = RestartRoundReason_getInstance();
|
|
983
|
-
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.
|
|
935
|
+
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.r9a_1);
|
|
984
936
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
985
|
-
this.
|
|
937
|
+
this.t9a_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
986
938
|
return Unit_instance;
|
|
987
939
|
} else if (tmp === 1) {
|
|
988
940
|
throw this.h9_1;
|
|
@@ -993,33 +945,33 @@
|
|
|
993
945
|
}
|
|
994
946
|
while (true);
|
|
995
947
|
};
|
|
996
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
997
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
998
|
-
i.
|
|
999
|
-
i.
|
|
948
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
949
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.r9a_1, completion);
|
|
950
|
+
i.s9a_1 = $this$dispatchAsync;
|
|
951
|
+
i.t9a_1 = store;
|
|
1000
952
|
return i;
|
|
1001
953
|
};
|
|
1002
954
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, resultContinuation) {
|
|
1003
955
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation);
|
|
1004
956
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1005
|
-
return i.
|
|
957
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
1006
958
|
};
|
|
1007
959
|
l.$arity = 2;
|
|
1008
960
|
return l;
|
|
1009
961
|
}
|
|
1010
962
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
1011
|
-
this.
|
|
963
|
+
this.c9b_1 = $spectators;
|
|
1012
964
|
CoroutineImpl.call(this, resultContinuation);
|
|
1013
965
|
}
|
|
1014
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1015
|
-
var tmp = this.
|
|
966
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
967
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
1016
968
|
tmp.g9_1 = Unit_instance;
|
|
1017
969
|
tmp.h9_1 = null;
|
|
1018
970
|
return tmp.m9();
|
|
1019
971
|
};
|
|
1020
972
|
protoOf(GameServer$addSpectatorsToRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1021
973
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1022
|
-
return this.
|
|
974
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1023
975
|
};
|
|
1024
976
|
protoOf(GameServer$addSpectatorsToRoom$slambda).m9 = function () {
|
|
1025
977
|
var suspendResult = this.g9_1;
|
|
@@ -1028,7 +980,7 @@
|
|
|
1028
980
|
var tmp = this.e9_1;
|
|
1029
981
|
if (tmp === 0) {
|
|
1030
982
|
this.f9_1 = 1;
|
|
1031
|
-
this.
|
|
983
|
+
this.e9b_1.dispatch(new AddSpectatorsAction(toList(this.c9b_1)));
|
|
1032
984
|
return Unit_instance;
|
|
1033
985
|
} else if (tmp === 1) {
|
|
1034
986
|
throw this.h9_1;
|
|
@@ -1039,33 +991,33 @@
|
|
|
1039
991
|
}
|
|
1040
992
|
while (true);
|
|
1041
993
|
};
|
|
1042
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1043
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
1044
|
-
i.
|
|
1045
|
-
i.
|
|
994
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
995
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.c9b_1, completion);
|
|
996
|
+
i.d9b_1 = $this$dispatchAsync;
|
|
997
|
+
i.e9b_1 = store;
|
|
1046
998
|
return i;
|
|
1047
999
|
};
|
|
1048
1000
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
1049
1001
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
1050
1002
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1051
|
-
return i.
|
|
1003
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
1052
1004
|
};
|
|
1053
1005
|
l.$arity = 2;
|
|
1054
1006
|
return l;
|
|
1055
1007
|
}
|
|
1056
1008
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1057
|
-
this.
|
|
1009
|
+
this.n9b_1 = $spectators;
|
|
1058
1010
|
CoroutineImpl.call(this, resultContinuation);
|
|
1059
1011
|
}
|
|
1060
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1061
|
-
var tmp = this.
|
|
1012
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
1013
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
1062
1014
|
tmp.g9_1 = Unit_instance;
|
|
1063
1015
|
tmp.h9_1 = null;
|
|
1064
1016
|
return tmp.m9();
|
|
1065
1017
|
};
|
|
1066
1018
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1067
1019
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1068
|
-
return this.
|
|
1020
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1069
1021
|
};
|
|
1070
1022
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).m9 = function () {
|
|
1071
1023
|
var suspendResult = this.g9_1;
|
|
@@ -1074,7 +1026,7 @@
|
|
|
1074
1026
|
var tmp = this.e9_1;
|
|
1075
1027
|
if (tmp === 0) {
|
|
1076
1028
|
this.f9_1 = 1;
|
|
1077
|
-
this.
|
|
1029
|
+
this.p9b_1.dispatch(new RemoveSpectatorsAction(toList(this.n9b_1)));
|
|
1078
1030
|
return Unit_instance;
|
|
1079
1031
|
} else if (tmp === 1) {
|
|
1080
1032
|
throw this.h9_1;
|
|
@@ -1085,34 +1037,34 @@
|
|
|
1085
1037
|
}
|
|
1086
1038
|
while (true);
|
|
1087
1039
|
};
|
|
1088
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1089
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
1090
|
-
i.
|
|
1091
|
-
i.
|
|
1040
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
1041
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.n9b_1, completion);
|
|
1042
|
+
i.o9b_1 = $this$dispatchAsync;
|
|
1043
|
+
i.p9b_1 = store;
|
|
1092
1044
|
return i;
|
|
1093
1045
|
};
|
|
1094
1046
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
1095
1047
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
1096
1048
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1097
|
-
return i.
|
|
1049
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
1098
1050
|
};
|
|
1099
1051
|
l.$arity = 2;
|
|
1100
1052
|
return l;
|
|
1101
1053
|
}
|
|
1102
1054
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
1103
|
-
this.
|
|
1104
|
-
this.
|
|
1055
|
+
this.y9b_1 = $playerId;
|
|
1056
|
+
this.z9b_1 = this$0;
|
|
1105
1057
|
CoroutineImpl.call(this, resultContinuation);
|
|
1106
1058
|
}
|
|
1107
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1108
|
-
var tmp = this.
|
|
1059
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
1060
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
1109
1061
|
tmp.g9_1 = Unit_instance;
|
|
1110
1062
|
tmp.h9_1 = null;
|
|
1111
1063
|
return tmp.m9();
|
|
1112
1064
|
};
|
|
1113
1065
|
protoOf(GameServer$roomRefreshPlayerState$slambda).x9 = function (p1, p2, $completion) {
|
|
1114
1066
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1115
|
-
return this.
|
|
1067
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1116
1068
|
};
|
|
1117
1069
|
protoOf(GameServer$roomRefreshPlayerState$slambda).m9 = function () {
|
|
1118
1070
|
var suspendResult = this.g9_1;
|
|
@@ -1121,14 +1073,14 @@
|
|
|
1121
1073
|
var tmp = this.e9_1;
|
|
1122
1074
|
if (tmp === 0) {
|
|
1123
1075
|
this.f9_1 = 1;
|
|
1124
|
-
var table = this.
|
|
1125
|
-
var player = getPlayer(table.players, this.
|
|
1126
|
-
if (player.
|
|
1127
|
-
this.
|
|
1076
|
+
var table = this.b9c_1.state.a6n();
|
|
1077
|
+
var player = getPlayer(table.players, this.y9b_1);
|
|
1078
|
+
if (player.s6s_1.q69().h68_1.isLive) {
|
|
1079
|
+
this.b9c_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.z9b_1).x8i(player, table));
|
|
1128
1080
|
} else {
|
|
1129
|
-
var tmp_0 = this.
|
|
1081
|
+
var tmp_0 = this.b9c_1.dispatch;
|
|
1130
1082
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1131
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1083
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.y9b_1));
|
|
1132
1084
|
}
|
|
1133
1085
|
return Unit_instance;
|
|
1134
1086
|
} else if (tmp === 1) {
|
|
@@ -1140,33 +1092,34 @@
|
|
|
1140
1092
|
}
|
|
1141
1093
|
while (true);
|
|
1142
1094
|
};
|
|
1143
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1144
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
1145
|
-
i.
|
|
1146
|
-
i.
|
|
1095
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
1096
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.y9b_1, this.z9b_1, completion);
|
|
1097
|
+
i.a9c_1 = $this$dispatchAsync;
|
|
1098
|
+
i.b9c_1 = store;
|
|
1147
1099
|
return i;
|
|
1148
1100
|
};
|
|
1149
1101
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
1150
1102
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
1151
1103
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1152
|
-
return i.
|
|
1104
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
1153
1105
|
};
|
|
1154
1106
|
l.$arity = 2;
|
|
1155
1107
|
return l;
|
|
1156
1108
|
}
|
|
1157
|
-
function GameServer$roomOnDelete$slambda(this$0, resultContinuation) {
|
|
1158
|
-
this.
|
|
1109
|
+
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
1110
|
+
this.k9c_1 = this$0;
|
|
1111
|
+
this.l9c_1 = $newRid;
|
|
1159
1112
|
CoroutineImpl.call(this, resultContinuation);
|
|
1160
1113
|
}
|
|
1161
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1162
|
-
var tmp = this.
|
|
1114
|
+
protoOf(GameServer$roomOnDelete$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
1115
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
1163
1116
|
tmp.g9_1 = Unit_instance;
|
|
1164
1117
|
tmp.h9_1 = null;
|
|
1165
1118
|
return tmp.m9();
|
|
1166
1119
|
};
|
|
1167
1120
|
protoOf(GameServer$roomOnDelete$slambda).x9 = function (p1, p2, $completion) {
|
|
1168
1121
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1169
|
-
return this.
|
|
1122
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1170
1123
|
};
|
|
1171
1124
|
protoOf(GameServer$roomOnDelete$slambda).m9 = function () {
|
|
1172
1125
|
var suspendResult = this.g9_1;
|
|
@@ -1175,16 +1128,39 @@
|
|
|
1175
1128
|
var tmp = this.e9_1;
|
|
1176
1129
|
if (tmp === 0) {
|
|
1177
1130
|
this.f9_1 = 1;
|
|
1178
|
-
var it = this.
|
|
1131
|
+
var it = this.k9c_1.n67().b6m_1;
|
|
1179
1132
|
var tmp_0;
|
|
1180
1133
|
if (it == null) {
|
|
1181
|
-
_get_logger__rkp4sl(this.
|
|
1134
|
+
_get_logger__rkp4sl(this.k9c_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
1182
1135
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
1183
1136
|
} else {
|
|
1184
1137
|
tmp_0 = it;
|
|
1185
1138
|
}
|
|
1186
1139
|
var terminationState = tmp_0;
|
|
1187
|
-
|
|
1140
|
+
var tmp_1 = this.n9c_1.dispatch;
|
|
1141
|
+
var tmp1_reason = terminationState.r8m_1;
|
|
1142
|
+
var tmp0_safe_receiver = terminationState.s8m_1;
|
|
1143
|
+
var tmp_2;
|
|
1144
|
+
if (tmp0_safe_receiver == null) {
|
|
1145
|
+
tmp_2 = null;
|
|
1146
|
+
} else {
|
|
1147
|
+
var value = this.l9c_1;
|
|
1148
|
+
var tmp$ret$0 = Unit_instance;
|
|
1149
|
+
l$ret$1: do {
|
|
1150
|
+
if (value == null) {
|
|
1151
|
+
var message = 'Required value was null.';
|
|
1152
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1153
|
+
} else {
|
|
1154
|
+
tmp$ret$0 = value;
|
|
1155
|
+
break l$ret$1;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
while (false);
|
|
1159
|
+
tmp_2 = tmp0_safe_receiver.copy(tmp$ret$0);
|
|
1160
|
+
}
|
|
1161
|
+
var tmp2_transition = tmp_2;
|
|
1162
|
+
var tmp3_isGameFinished = this.k9c_1.n67().a6n().isGameFinished;
|
|
1163
|
+
tmp_1(new FinishGameMechanicAction(tmp1_reason, tmp3_isGameFinished, VOID, tmp2_transition));
|
|
1188
1164
|
return Unit_instance;
|
|
1189
1165
|
} else if (tmp === 1) {
|
|
1190
1166
|
throw this.h9_1;
|
|
@@ -1195,33 +1171,33 @@
|
|
|
1195
1171
|
}
|
|
1196
1172
|
while (true);
|
|
1197
1173
|
};
|
|
1198
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1199
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
1200
|
-
i.
|
|
1201
|
-
i.
|
|
1174
|
+
protoOf(GameServer$roomOnDelete$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
1175
|
+
var i = new GameServer$roomOnDelete$slambda(this.k9c_1, this.l9c_1, completion);
|
|
1176
|
+
i.m9c_1 = $this$dispatchAsync;
|
|
1177
|
+
i.n9c_1 = store;
|
|
1202
1178
|
return i;
|
|
1203
1179
|
};
|
|
1204
|
-
function GameServer$roomOnDelete$slambda_0(this$0, resultContinuation) {
|
|
1205
|
-
var i = new GameServer$roomOnDelete$slambda(this$0, resultContinuation);
|
|
1180
|
+
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
1181
|
+
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
1206
1182
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1207
|
-
return i.
|
|
1183
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
1208
1184
|
};
|
|
1209
1185
|
l.$arity = 2;
|
|
1210
1186
|
return l;
|
|
1211
1187
|
}
|
|
1212
1188
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
1213
|
-
this.
|
|
1189
|
+
this.w9c_1 = $enabled;
|
|
1214
1190
|
CoroutineImpl.call(this, resultContinuation);
|
|
1215
1191
|
}
|
|
1216
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1217
|
-
var tmp = this.
|
|
1192
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
1193
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
1218
1194
|
tmp.g9_1 = Unit_instance;
|
|
1219
1195
|
tmp.h9_1 = null;
|
|
1220
1196
|
return tmp.m9();
|
|
1221
1197
|
};
|
|
1222
1198
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).x9 = function (p1, p2, $completion) {
|
|
1223
1199
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1224
|
-
return this.
|
|
1200
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1225
1201
|
};
|
|
1226
1202
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).m9 = function () {
|
|
1227
1203
|
var suspendResult = this.g9_1;
|
|
@@ -1230,7 +1206,7 @@
|
|
|
1230
1206
|
var tmp = this.e9_1;
|
|
1231
1207
|
if (tmp === 0) {
|
|
1232
1208
|
this.f9_1 = 1;
|
|
1233
|
-
this.
|
|
1209
|
+
this.y9c_1.dispatch(new UpdateServerConfigAction(get_serverState_0(this.y9c_1.state).z9c_1.b9d(this.w9c_1)));
|
|
1234
1210
|
return Unit_instance;
|
|
1235
1211
|
} else if (tmp === 1) {
|
|
1236
1212
|
throw this.h9_1;
|
|
@@ -1241,35 +1217,35 @@
|
|
|
1241
1217
|
}
|
|
1242
1218
|
while (true);
|
|
1243
1219
|
};
|
|
1244
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1245
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
1246
|
-
i.
|
|
1247
|
-
i.
|
|
1220
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
1221
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.w9c_1, completion);
|
|
1222
|
+
i.x9c_1 = $this$dispatchAsync;
|
|
1223
|
+
i.y9c_1 = store;
|
|
1248
1224
|
return i;
|
|
1249
1225
|
};
|
|
1250
1226
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
1251
1227
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
1252
1228
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1253
|
-
return i.
|
|
1229
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
1254
1230
|
};
|
|
1255
1231
|
l.$arity = 2;
|
|
1256
1232
|
return l;
|
|
1257
1233
|
}
|
|
1258
1234
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
1259
|
-
this.
|
|
1260
|
-
this.
|
|
1261
|
-
this.
|
|
1235
|
+
this.k9d_1 = $reason;
|
|
1236
|
+
this.l9d_1 = this$0;
|
|
1237
|
+
this.m9d_1 = $roomId;
|
|
1262
1238
|
CoroutineImpl.call(this, resultContinuation);
|
|
1263
1239
|
}
|
|
1264
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1265
|
-
var tmp = this.
|
|
1240
|
+
protoOf(GameServer$shutdown$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
1241
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
1266
1242
|
tmp.g9_1 = Unit_instance;
|
|
1267
1243
|
tmp.h9_1 = null;
|
|
1268
1244
|
return tmp.m9();
|
|
1269
1245
|
};
|
|
1270
1246
|
protoOf(GameServer$shutdown$slambda).x9 = function (p1, p2, $completion) {
|
|
1271
1247
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1272
|
-
return this.
|
|
1248
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1273
1249
|
};
|
|
1274
1250
|
protoOf(GameServer$shutdown$slambda).m9 = function () {
|
|
1275
1251
|
var suspendResult = this.g9_1;
|
|
@@ -1278,11 +1254,11 @@
|
|
|
1278
1254
|
var tmp = this.e9_1;
|
|
1279
1255
|
if (tmp === 0) {
|
|
1280
1256
|
this.f9_1 = 1;
|
|
1281
|
-
var state = this.
|
|
1257
|
+
var state = this.o9d_1.store.state;
|
|
1282
1258
|
if (state.b6n()) {
|
|
1283
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1259
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.k9d_1, get_serverShutdownReasonMapping());
|
|
1284
1260
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1285
|
-
var tmp_0 = this.
|
|
1261
|
+
var tmp_0 = this.o9d_1.dispatch;
|
|
1286
1262
|
var tmp_1 = Companion_instance_0;
|
|
1287
1263
|
var tmp_2;
|
|
1288
1264
|
switch (shutdownReason.n2_1) {
|
|
@@ -1296,10 +1272,10 @@
|
|
|
1296
1272
|
noWhenBranchMatchedException();
|
|
1297
1273
|
break;
|
|
1298
1274
|
}
|
|
1299
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1275
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.l9d_1.table.isGameFinished, this.l9d_1.table));
|
|
1300
1276
|
} else {
|
|
1301
|
-
_get_logger__rkp4sl(this.
|
|
1302
|
-
this.
|
|
1277
|
+
_get_logger__rkp4sl(this.l9d_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.m9d_1);
|
|
1278
|
+
this.o9d_1.dispatch(new ClearAction());
|
|
1303
1279
|
}
|
|
1304
1280
|
return Unit_instance;
|
|
1305
1281
|
} else if (tmp === 1) {
|
|
@@ -1311,22 +1287,22 @@
|
|
|
1311
1287
|
}
|
|
1312
1288
|
while (true);
|
|
1313
1289
|
};
|
|
1314
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1315
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1316
|
-
i.
|
|
1317
|
-
i.
|
|
1290
|
+
protoOf(GameServer$shutdown$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
1291
|
+
var i = new GameServer$shutdown$slambda(this.k9d_1, this.l9d_1, this.m9d_1, completion);
|
|
1292
|
+
i.n9d_1 = $this$dispatchAsync;
|
|
1293
|
+
i.o9d_1 = store;
|
|
1318
1294
|
return i;
|
|
1319
1295
|
};
|
|
1320
1296
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
1321
1297
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
1322
1298
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1323
|
-
return i.
|
|
1299
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
1324
1300
|
};
|
|
1325
1301
|
l.$arity = 2;
|
|
1326
1302
|
return l;
|
|
1327
1303
|
}
|
|
1328
1304
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1329
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID,
|
|
1305
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.p9d()) : preloadedState;
|
|
1330
1306
|
var tmp;
|
|
1331
1307
|
if (externalReducers === VOID) {
|
|
1332
1308
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1349,28 +1325,28 @@
|
|
|
1349
1325
|
// Inline function 'org.kodein.type.generic' call
|
|
1350
1326
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1351
1327
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1352
|
-
tmp_1.
|
|
1328
|
+
tmp_1.u96_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory());
|
|
1353
1329
|
var tmp_3 = this;
|
|
1354
1330
|
// Inline function 'org.kodein.di.instance' call
|
|
1355
1331
|
// Inline function 'org.kodein.type.generic' call
|
|
1356
1332
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1357
1333
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1358
|
-
tmp_3.
|
|
1334
|
+
tmp_3.v96_1 = Instance(di, tmp$ret$4, null).e60(this, toClientEventsObserver$factory());
|
|
1359
1335
|
var tmp_5 = this;
|
|
1360
1336
|
// Inline function 'org.kodein.di.instance' call
|
|
1361
1337
|
// Inline function 'org.kodein.type.generic' call
|
|
1362
1338
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1363
1339
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1364
|
-
tmp_5.
|
|
1340
|
+
tmp_5.w96_1 = Instance(di, tmp$ret$6, null).e60(this, playerConnectionInteractor$factory());
|
|
1365
1341
|
var tmp_7 = this;
|
|
1366
|
-
tmp_7.
|
|
1342
|
+
tmp_7.x96_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
1367
1343
|
var tmp_8 = this;
|
|
1368
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
1369
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
1370
|
-
tmp_8.
|
|
1344
|
+
var tmp0_externalMiddlewares = plus(storeContract.y8q(), externalMiddlewares);
|
|
1345
|
+
var tmp1_externalReducers = plus(storeContract.x8q(), externalReducers);
|
|
1346
|
+
tmp_8.y96_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
1371
1347
|
}
|
|
1372
1348
|
protoOf(GameServer).n6l = function () {
|
|
1373
|
-
return this.
|
|
1349
|
+
return this.y96_1;
|
|
1374
1350
|
};
|
|
1375
1351
|
protoOf(GameServer).o5h = function () {
|
|
1376
1352
|
return this.n67().a6n().id;
|
|
@@ -1394,44 +1370,44 @@
|
|
|
1394
1370
|
};
|
|
1395
1371
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
1396
1372
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
1397
|
-
this.
|
|
1373
|
+
this.y96_1.z6m(GameServer$fromClientEvent$slambda_0(action, null));
|
|
1398
1374
|
};
|
|
1399
1375
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
1400
1376
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
1401
|
-
this.
|
|
1377
|
+
this.y96_1.z6m(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
1402
1378
|
};
|
|
1403
1379
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
1404
1380
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
1405
|
-
this.
|
|
1381
|
+
this.y96_1.z6m(GameServer$playerLive$slambda_0(playerId, null));
|
|
1406
1382
|
};
|
|
1407
1383
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
1408
1384
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1409
|
-
this.
|
|
1385
|
+
this.y96_1.z6m(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1410
1386
|
};
|
|
1411
|
-
protoOf(GameServer).
|
|
1412
|
-
this.
|
|
1387
|
+
protoOf(GameServer).q9d = function (roomId, gameCreatorId, config, users, transition, spectators) {
|
|
1388
|
+
this.y96_1.z6m(GameServer$roomOnCreate$slambda_0(users, gameCreatorId, this, spectators, config, roomId, null));
|
|
1413
1389
|
};
|
|
1414
1390
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
1415
|
-
this.
|
|
1391
|
+
this.y96_1.z6m(GameServer$roomOnContinueFromRound$slambda_0(tableLite, null));
|
|
1416
1392
|
};
|
|
1417
1393
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
1418
|
-
this.
|
|
1394
|
+
this.y96_1.z6m(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
1419
1395
|
};
|
|
1420
1396
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
1421
|
-
this.
|
|
1397
|
+
this.y96_1.z6m(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
1422
1398
|
};
|
|
1423
1399
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
1424
1400
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
1425
|
-
this.
|
|
1401
|
+
this.y96_1.z6m(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
1426
1402
|
};
|
|
1427
|
-
protoOf(GameServer).
|
|
1428
|
-
this.
|
|
1403
|
+
protoOf(GameServer).r9d = function (newRid) {
|
|
1404
|
+
this.y96_1.z6m(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
1429
1405
|
};
|
|
1430
1406
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1431
|
-
this.
|
|
1407
|
+
this.y96_1.z6m(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1432
1408
|
};
|
|
1433
|
-
protoOf(GameServer).
|
|
1434
|
-
this.
|
|
1409
|
+
protoOf(GameServer).s9d = function (reason, roomId) {
|
|
1410
|
+
this.y96_1.z6m(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
1435
1411
|
};
|
|
1436
1412
|
protoOf(GameServer).clear = function () {
|
|
1437
1413
|
return this.a2();
|
|
@@ -1505,16 +1481,16 @@
|
|
|
1505
1481
|
return ServerShutdownReason_ERROR_instance;
|
|
1506
1482
|
}
|
|
1507
1483
|
function ServerConfig(canStartNewGame) {
|
|
1508
|
-
this.
|
|
1484
|
+
this.a9d_1 = canStartNewGame;
|
|
1509
1485
|
}
|
|
1510
|
-
protoOf(ServerConfig).
|
|
1486
|
+
protoOf(ServerConfig).b9d = function (canStartNewGame) {
|
|
1511
1487
|
return new ServerConfig(canStartNewGame);
|
|
1512
1488
|
};
|
|
1513
1489
|
protoOf(ServerConfig).toString = function () {
|
|
1514
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1490
|
+
return 'ServerConfig(canStartNewGame=' + this.a9d_1 + ')';
|
|
1515
1491
|
};
|
|
1516
1492
|
protoOf(ServerConfig).hashCode = function () {
|
|
1517
|
-
return getBooleanHashCode(this.
|
|
1493
|
+
return getBooleanHashCode(this.a9d_1);
|
|
1518
1494
|
};
|
|
1519
1495
|
protoOf(ServerConfig).equals = function (other) {
|
|
1520
1496
|
if (this === other)
|
|
@@ -1522,7 +1498,7 @@
|
|
|
1522
1498
|
if (!(other instanceof ServerConfig))
|
|
1523
1499
|
return false;
|
|
1524
1500
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1525
|
-
if (!(this.
|
|
1501
|
+
if (!(this.a9d_1 === tmp0_other_with_cast.a9d_1))
|
|
1526
1502
|
return false;
|
|
1527
1503
|
return true;
|
|
1528
1504
|
};
|
|
@@ -1754,18 +1730,18 @@
|
|
|
1754
1730
|
function ToClientEventsObserver() {
|
|
1755
1731
|
}
|
|
1756
1732
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
1757
|
-
this.
|
|
1758
|
-
this.
|
|
1733
|
+
this.c9e_1 = this$0;
|
|
1734
|
+
this.d9e_1 = $actions;
|
|
1759
1735
|
CoroutineImpl.call(this, resultContinuation);
|
|
1760
1736
|
}
|
|
1761
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1762
|
-
var tmp = this.
|
|
1737
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).k9e = function ($this$flow, $completion) {
|
|
1738
|
+
var tmp = this.l9e($this$flow, $completion);
|
|
1763
1739
|
tmp.g9_1 = Unit_instance;
|
|
1764
1740
|
tmp.h9_1 = null;
|
|
1765
1741
|
return tmp.m9();
|
|
1766
1742
|
};
|
|
1767
1743
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
1768
|
-
return this.
|
|
1744
|
+
return this.k9e((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
1769
1745
|
};
|
|
1770
1746
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).m9 = function () {
|
|
1771
1747
|
var suspendResult = this.g9_1;
|
|
@@ -1776,23 +1752,23 @@
|
|
|
1776
1752
|
case 0:
|
|
1777
1753
|
this.f9_1 = 4;
|
|
1778
1754
|
var tmp_0 = this;
|
|
1779
|
-
tmp_0.
|
|
1755
|
+
tmp_0.f9e_1 = this.c9e_1.q9e_1;
|
|
1780
1756
|
var tmp_1 = this;
|
|
1781
|
-
tmp_1.
|
|
1782
|
-
this.
|
|
1757
|
+
tmp_1.g9e_1 = transformToEmits(this.c9e_1, this.d9e_1);
|
|
1758
|
+
this.h9e_1 = this.g9e_1.j();
|
|
1783
1759
|
this.e9_1 = 1;
|
|
1784
1760
|
continue $sm;
|
|
1785
1761
|
case 1:
|
|
1786
|
-
if (!this.
|
|
1762
|
+
if (!this.h9e_1.k()) {
|
|
1787
1763
|
this.e9_1 = 3;
|
|
1788
1764
|
continue $sm;
|
|
1789
1765
|
}
|
|
1790
1766
|
|
|
1791
|
-
this.
|
|
1767
|
+
this.i9e_1 = this.h9e_1.l();
|
|
1792
1768
|
var tmp_2 = this;
|
|
1793
|
-
tmp_2.
|
|
1769
|
+
tmp_2.j9e_1 = this.i9e_1;
|
|
1794
1770
|
this.e9_1 = 2;
|
|
1795
|
-
suspendResult = this.
|
|
1771
|
+
suspendResult = this.e9e_1.p18(this.j9e_1, this);
|
|
1796
1772
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1797
1773
|
return suspendResult;
|
|
1798
1774
|
}
|
|
@@ -1803,10 +1779,10 @@
|
|
|
1803
1779
|
continue $sm;
|
|
1804
1780
|
case 3:
|
|
1805
1781
|
l$ret$1: do {
|
|
1806
|
-
var this_0 = this.
|
|
1782
|
+
var this_0 = this.c9e_1.p9e_1;
|
|
1807
1783
|
while (true) {
|
|
1808
1784
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1809
|
-
var upd = cur - this.
|
|
1785
|
+
var upd = cur - this.d9e_1.m() | 0;
|
|
1810
1786
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
1811
1787
|
break l$ret$1;
|
|
1812
1788
|
}
|
|
@@ -1828,15 +1804,15 @@
|
|
|
1828
1804
|
}
|
|
1829
1805
|
while (true);
|
|
1830
1806
|
};
|
|
1831
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1832
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.
|
|
1833
|
-
i.
|
|
1807
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).l9e = function ($this$flow, completion) {
|
|
1808
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.c9e_1, this.d9e_1, completion);
|
|
1809
|
+
i.e9e_1 = $this$flow;
|
|
1834
1810
|
return i;
|
|
1835
1811
|
};
|
|
1836
1812
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
1837
1813
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
1838
1814
|
var l = function ($this$flow, $completion) {
|
|
1839
|
-
return i.
|
|
1815
|
+
return i.k9e($this$flow, $completion);
|
|
1840
1816
|
};
|
|
1841
1817
|
l.$arity = 1;
|
|
1842
1818
|
return l;
|
|
@@ -1909,29 +1885,29 @@
|
|
|
1909
1885
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
1910
1886
|
}
|
|
1911
1887
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
1912
|
-
var tmp = $this.
|
|
1888
|
+
var tmp = $this.o9e_1.g6d();
|
|
1913
1889
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1914
|
-
var this_0 = _this__u8e3s4.
|
|
1890
|
+
var this_0 = _this__u8e3s4.t9e_1;
|
|
1915
1891
|
var tmp_0 = copyToArray(this_0);
|
|
1916
1892
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1917
|
-
var this_1 = _this__u8e3s4.
|
|
1893
|
+
var this_1 = _this__u8e3s4.u9e_1;
|
|
1918
1894
|
var tmp$ret$1 = copyToArray(this_1);
|
|
1919
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
1895
|
+
return new ActionDeliveryPayload(_this__u8e3s4.s9e_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.v9e_1);
|
|
1920
1896
|
}
|
|
1921
1897
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
1922
|
-
this.
|
|
1923
|
-
this.
|
|
1924
|
-
this.
|
|
1925
|
-
this.
|
|
1898
|
+
this.s9e_1 = tableId;
|
|
1899
|
+
this.t9e_1 = includePlayers;
|
|
1900
|
+
this.u9e_1 = excludePlayers;
|
|
1901
|
+
this.v9e_1 = deliveryType;
|
|
1926
1902
|
}
|
|
1927
1903
|
protoOf(GroupKey).toString = function () {
|
|
1928
|
-
return 'GroupKey(tableId=' + this.
|
|
1904
|
+
return 'GroupKey(tableId=' + this.s9e_1 + ', includePlayers=' + toString(this.t9e_1) + ', excludePlayers=' + toString(this.u9e_1) + ', deliveryType=' + this.v9e_1.toString() + ')';
|
|
1929
1905
|
};
|
|
1930
1906
|
protoOf(GroupKey).hashCode = function () {
|
|
1931
|
-
var result = getStringHashCode(this.
|
|
1932
|
-
result = imul(result, 31) + hashCode(this.
|
|
1933
|
-
result = imul(result, 31) + hashCode(this.
|
|
1934
|
-
result = imul(result, 31) + this.
|
|
1907
|
+
var result = getStringHashCode(this.s9e_1);
|
|
1908
|
+
result = imul(result, 31) + hashCode(this.t9e_1) | 0;
|
|
1909
|
+
result = imul(result, 31) + hashCode(this.u9e_1) | 0;
|
|
1910
|
+
result = imul(result, 31) + this.v9e_1.hashCode() | 0;
|
|
1935
1911
|
return result;
|
|
1936
1912
|
};
|
|
1937
1913
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -1940,35 +1916,35 @@
|
|
|
1940
1916
|
if (!(other instanceof GroupKey))
|
|
1941
1917
|
return false;
|
|
1942
1918
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
1943
|
-
if (!(this.
|
|
1919
|
+
if (!(this.s9e_1 === tmp0_other_with_cast.s9e_1))
|
|
1944
1920
|
return false;
|
|
1945
|
-
if (!equals(this.
|
|
1921
|
+
if (!equals(this.t9e_1, tmp0_other_with_cast.t9e_1))
|
|
1946
1922
|
return false;
|
|
1947
|
-
if (!equals(this.
|
|
1923
|
+
if (!equals(this.u9e_1, tmp0_other_with_cast.u9e_1))
|
|
1948
1924
|
return false;
|
|
1949
|
-
if (!this.
|
|
1925
|
+
if (!this.v9e_1.equals(tmp0_other_with_cast.v9e_1))
|
|
1950
1926
|
return false;
|
|
1951
1927
|
return true;
|
|
1952
1928
|
};
|
|
1953
1929
|
function Companion_0() {
|
|
1954
|
-
this.
|
|
1930
|
+
this.w9e_1 = 6;
|
|
1955
1931
|
}
|
|
1956
|
-
var
|
|
1957
|
-
function
|
|
1958
|
-
return
|
|
1932
|
+
var Companion_instance_8;
|
|
1933
|
+
function Companion_getInstance_1() {
|
|
1934
|
+
return Companion_instance_8;
|
|
1959
1935
|
}
|
|
1960
1936
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation) {
|
|
1961
|
-
this.
|
|
1937
|
+
this.f9f_1 = this$0;
|
|
1962
1938
|
CoroutineImpl.call(this, resultContinuation);
|
|
1963
1939
|
}
|
|
1964
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1965
|
-
var tmp = this.
|
|
1940
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).h9f = function (actions, $completion) {
|
|
1941
|
+
var tmp = this.i9f(actions, $completion);
|
|
1966
1942
|
tmp.g9_1 = Unit_instance;
|
|
1967
1943
|
tmp.h9_1 = null;
|
|
1968
1944
|
return tmp.m9();
|
|
1969
1945
|
};
|
|
1970
1946
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).w9 = function (p1, $completion) {
|
|
1971
|
-
return this.
|
|
1947
|
+
return this.h9f((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
1972
1948
|
};
|
|
1973
1949
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).m9 = function () {
|
|
1974
1950
|
var suspendResult = this.g9_1;
|
|
@@ -1977,7 +1953,7 @@
|
|
|
1977
1953
|
var tmp = this.e9_1;
|
|
1978
1954
|
if (tmp === 0) {
|
|
1979
1955
|
this.f9_1 = 1;
|
|
1980
|
-
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.
|
|
1956
|
+
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.f9f_1, this.g9f_1, null));
|
|
1981
1957
|
} else if (tmp === 1) {
|
|
1982
1958
|
throw this.h9_1;
|
|
1983
1959
|
}
|
|
@@ -1987,23 +1963,23 @@
|
|
|
1987
1963
|
}
|
|
1988
1964
|
while (true);
|
|
1989
1965
|
};
|
|
1990
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1991
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.
|
|
1992
|
-
i.
|
|
1966
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).i9f = function (actions, completion) {
|
|
1967
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.f9f_1, completion);
|
|
1968
|
+
i.g9f_1 = actions;
|
|
1993
1969
|
return i;
|
|
1994
1970
|
};
|
|
1995
1971
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this$0, resultContinuation) {
|
|
1996
1972
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation);
|
|
1997
1973
|
var l = function (actions, $completion) {
|
|
1998
|
-
return i.
|
|
1974
|
+
return i.h9f(actions, $completion);
|
|
1999
1975
|
};
|
|
2000
1976
|
l.$arity = 1;
|
|
2001
1977
|
return l;
|
|
2002
1978
|
}
|
|
2003
1979
|
function $sentEventCOROUTINE$0(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
2004
1980
|
CoroutineImpl.call(this, resultContinuation);
|
|
2005
|
-
this.
|
|
2006
|
-
this.
|
|
1981
|
+
this.r9f_1 = _this__u8e3s4;
|
|
1982
|
+
this.s9f_1 = fromEvent;
|
|
2007
1983
|
}
|
|
2008
1984
|
protoOf($sentEventCOROUTINE$0).m9 = function () {
|
|
2009
1985
|
var suspendResult = this.g9_1;
|
|
@@ -2014,9 +1990,9 @@
|
|
|
2014
1990
|
case 0:
|
|
2015
1991
|
this.f9_1 = 2;
|
|
2016
1992
|
var tmp_0 = this;
|
|
2017
|
-
tmp_0.
|
|
1993
|
+
tmp_0.t9f_1 = this.r9f_1.q9e_1;
|
|
2018
1994
|
l$ret$1: do {
|
|
2019
|
-
var this_0 = this.
|
|
1995
|
+
var this_0 = this.r9f_1.p9e_1;
|
|
2020
1996
|
while (true) {
|
|
2021
1997
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2022
1998
|
var upd = cur + 1 | 0;
|
|
@@ -2027,7 +2003,7 @@
|
|
|
2027
2003
|
}
|
|
2028
2004
|
while (false);
|
|
2029
2005
|
this.e9_1 = 1;
|
|
2030
|
-
suspendResult = this.
|
|
2006
|
+
suspendResult = this.r9f_1.r9e_1.p18(this.s9f_1, this);
|
|
2031
2007
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2032
2008
|
return suspendResult;
|
|
2033
2009
|
}
|
|
@@ -2051,7 +2027,7 @@
|
|
|
2051
2027
|
};
|
|
2052
2028
|
function $waitForCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
2053
2029
|
CoroutineImpl.call(this, resultContinuation);
|
|
2054
|
-
this.
|
|
2030
|
+
this.c9g_1 = _this__u8e3s4;
|
|
2055
2031
|
}
|
|
2056
2032
|
protoOf($waitForCOROUTINE$1).m9 = function () {
|
|
2057
2033
|
var suspendResult = this.g9_1;
|
|
@@ -2062,12 +2038,12 @@
|
|
|
2062
2038
|
case 0:
|
|
2063
2039
|
this.f9_1 = 5;
|
|
2064
2040
|
var tmp_0 = this;
|
|
2065
|
-
tmp_0.
|
|
2066
|
-
this.
|
|
2041
|
+
tmp_0.d9g_1 = this.c9g_1.q9e_1;
|
|
2042
|
+
this.e9g_1 = 0;
|
|
2067
2043
|
this.e9_1 = 1;
|
|
2068
2044
|
continue $sm;
|
|
2069
2045
|
case 1:
|
|
2070
|
-
if (!!(this.
|
|
2046
|
+
if (!!(this.c9g_1.p9e_1.kotlinx$atomicfu$value === 0)) {
|
|
2071
2047
|
this.e9_1 = 4;
|
|
2072
2048
|
continue $sm;
|
|
2073
2049
|
}
|
|
@@ -2080,9 +2056,9 @@
|
|
|
2080
2056
|
|
|
2081
2057
|
continue $sm;
|
|
2082
2058
|
case 2:
|
|
2083
|
-
this.
|
|
2084
|
-
if (this.
|
|
2085
|
-
this.
|
|
2059
|
+
this.e9g_1 = this.e9g_1 + 1 | 0;
|
|
2060
|
+
if (this.e9g_1 > 6) {
|
|
2061
|
+
this.c9g_1.n9e_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.c9g_1.p9e_1.kotlinx$atomicfu$value);
|
|
2086
2062
|
this.e9_1 = 4;
|
|
2087
2063
|
continue $sm;
|
|
2088
2064
|
} else {
|
|
@@ -2110,42 +2086,42 @@
|
|
|
2110
2086
|
while (true);
|
|
2111
2087
|
};
|
|
2112
2088
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
2113
|
-
this.
|
|
2114
|
-
this.
|
|
2115
|
-
this.
|
|
2116
|
-
this.
|
|
2089
|
+
this.m9e_1 = serverReduxConfig;
|
|
2090
|
+
this.n9e_1 = logger;
|
|
2091
|
+
this.o9e_1 = idsProvider;
|
|
2092
|
+
this.p9e_1 = atomic$ref$1(0);
|
|
2117
2093
|
var tmp = this;
|
|
2118
2094
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
2119
|
-
tmp.
|
|
2120
|
-
this.
|
|
2095
|
+
tmp.q9e_1 = get_atomicfu$reentrantLock();
|
|
2096
|
+
this.r9e_1 = MutableSharedFlow();
|
|
2121
2097
|
}
|
|
2122
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2098
|
+
protoOf(ToClientEventsObserverImpl).t9d = function (fromEvent, $completion) {
|
|
2123
2099
|
var tmp = new $sentEventCOROUTINE$0(this, fromEvent, $completion);
|
|
2124
2100
|
tmp.g9_1 = Unit_instance;
|
|
2125
2101
|
tmp.h9_1 = null;
|
|
2126
2102
|
return tmp.m9();
|
|
2127
2103
|
};
|
|
2128
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2104
|
+
protoOf(ToClientEventsObserverImpl).t8x = function ($completion) {
|
|
2129
2105
|
var tmp = new $waitForCOROUTINE$1(this, $completion);
|
|
2130
2106
|
tmp.g9_1 = Unit_instance;
|
|
2131
2107
|
tmp.h9_1 = null;
|
|
2132
2108
|
return tmp.m9();
|
|
2133
2109
|
};
|
|
2134
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2135
|
-
if (!this.
|
|
2136
|
-
return this.
|
|
2110
|
+
protoOf(ToClientEventsObserverImpl).n97 = function () {
|
|
2111
|
+
if (!this.m9e_1.enabledCombinedEvents) {
|
|
2112
|
+
return this.r9e_1;
|
|
2137
2113
|
}
|
|
2138
|
-
var tmp = windowedByInterval(this.
|
|
2114
|
+
var tmp = windowedByInterval(this.r9e_1, toLong(this.m9e_1.combinedEventsPeriod));
|
|
2139
2115
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this, null));
|
|
2140
2116
|
};
|
|
2141
2117
|
function UpdateServerConfigAction(serverConfig) {
|
|
2142
|
-
this.
|
|
2118
|
+
this.f9g_1 = serverConfig;
|
|
2143
2119
|
}
|
|
2144
2120
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
2145
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
2121
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.f9g_1.toString() + ')';
|
|
2146
2122
|
};
|
|
2147
2123
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
2148
|
-
return this.
|
|
2124
|
+
return this.f9g_1.hashCode();
|
|
2149
2125
|
};
|
|
2150
2126
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
2151
2127
|
if (this === other)
|
|
@@ -2153,20 +2129,20 @@
|
|
|
2153
2129
|
if (!(other instanceof UpdateServerConfigAction))
|
|
2154
2130
|
return false;
|
|
2155
2131
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
2156
|
-
if (!this.
|
|
2132
|
+
if (!this.f9g_1.equals(tmp0_other_with_cast.f9g_1))
|
|
2157
2133
|
return false;
|
|
2158
2134
|
return true;
|
|
2159
2135
|
};
|
|
2160
2136
|
function SpectatorsAction() {
|
|
2161
2137
|
}
|
|
2162
2138
|
function AddSpectatorsAction(spectators) {
|
|
2163
|
-
this.
|
|
2139
|
+
this.g9g_1 = spectators;
|
|
2164
2140
|
}
|
|
2165
2141
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
2166
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
2142
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.g9g_1) + ')';
|
|
2167
2143
|
};
|
|
2168
2144
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
2169
|
-
return hashCode(this.
|
|
2145
|
+
return hashCode(this.g9g_1);
|
|
2170
2146
|
};
|
|
2171
2147
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
2172
2148
|
if (this === other)
|
|
@@ -2174,18 +2150,18 @@
|
|
|
2174
2150
|
if (!(other instanceof AddSpectatorsAction))
|
|
2175
2151
|
return false;
|
|
2176
2152
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
2177
|
-
if (!equals(this.
|
|
2153
|
+
if (!equals(this.g9g_1, tmp0_other_with_cast.g9g_1))
|
|
2178
2154
|
return false;
|
|
2179
2155
|
return true;
|
|
2180
2156
|
};
|
|
2181
2157
|
function RemoveSpectatorsAction(spectators) {
|
|
2182
|
-
this.
|
|
2158
|
+
this.h9g_1 = spectators;
|
|
2183
2159
|
}
|
|
2184
2160
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
2185
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
2161
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.h9g_1) + ')';
|
|
2186
2162
|
};
|
|
2187
2163
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
2188
|
-
return hashCode(this.
|
|
2164
|
+
return hashCode(this.h9g_1);
|
|
2189
2165
|
};
|
|
2190
2166
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
2191
2167
|
if (this === other)
|
|
@@ -2193,72 +2169,72 @@
|
|
|
2193
2169
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
2194
2170
|
return false;
|
|
2195
2171
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
2196
|
-
if (!equals(this.
|
|
2172
|
+
if (!equals(this.h9g_1, tmp0_other_with_cast.h9g_1))
|
|
2197
2173
|
return false;
|
|
2198
2174
|
return true;
|
|
2199
2175
|
};
|
|
2200
2176
|
function _get_asyncProvider__jbpyhw($this) {
|
|
2201
2177
|
// Inline function 'kotlin.getValue' call
|
|
2202
|
-
var this_0 = $this.
|
|
2178
|
+
var this_0 = $this.n9g_1;
|
|
2203
2179
|
asyncProvider$factory_0();
|
|
2204
2180
|
return this_0.u();
|
|
2205
2181
|
}
|
|
2206
2182
|
function _get_logger__rkp4sl_0($this) {
|
|
2207
2183
|
// Inline function 'kotlin.getValue' call
|
|
2208
|
-
var this_0 = $this.
|
|
2184
|
+
var this_0 = $this.o9g_1;
|
|
2209
2185
|
logger$factory_2();
|
|
2210
2186
|
return this_0.u();
|
|
2211
2187
|
}
|
|
2212
2188
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
2213
2189
|
// Inline function 'kotlin.getValue' call
|
|
2214
|
-
var this_0 = $this.
|
|
2190
|
+
var this_0 = $this.p9g_1;
|
|
2215
2191
|
playerConnectionInteractor$factory_2();
|
|
2216
2192
|
return this_0.u();
|
|
2217
2193
|
}
|
|
2218
2194
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
2219
2195
|
// Inline function 'kotlin.getValue' call
|
|
2220
|
-
var this_0 = $this.
|
|
2196
|
+
var this_0 = $this.q9g_1;
|
|
2221
2197
|
lastCardInteractor$factory_0();
|
|
2222
2198
|
return this_0.u();
|
|
2223
2199
|
}
|
|
2224
2200
|
function _get_serverConfig__rk2g06($this) {
|
|
2225
2201
|
// Inline function 'kotlin.getValue' call
|
|
2226
|
-
var this_0 = $this.
|
|
2202
|
+
var this_0 = $this.r9g_1;
|
|
2227
2203
|
serverConfig$factory_0();
|
|
2228
2204
|
return this_0.u();
|
|
2229
2205
|
}
|
|
2230
2206
|
function _get_logicConfig__52ww9d($this) {
|
|
2231
2207
|
// Inline function 'kotlin.getValue' call
|
|
2232
|
-
var this_0 = $this.
|
|
2208
|
+
var this_0 = $this.s9g_1;
|
|
2233
2209
|
logicConfig$factory_0();
|
|
2234
2210
|
return this_0.u();
|
|
2235
2211
|
}
|
|
2236
2212
|
function _get_idsProvider__fnfajc($this) {
|
|
2237
2213
|
// Inline function 'kotlin.getValue' call
|
|
2238
|
-
var this_0 = $this.
|
|
2214
|
+
var this_0 = $this.t9g_1;
|
|
2239
2215
|
idsProvider$factory_0();
|
|
2240
2216
|
return this_0.u();
|
|
2241
2217
|
}
|
|
2242
2218
|
function _get_botConfig__cpaxzc($this) {
|
|
2243
2219
|
// Inline function 'kotlin.getValue' call
|
|
2244
|
-
var this_0 = $this.
|
|
2220
|
+
var this_0 = $this.u9g_1;
|
|
2245
2221
|
botConfig$factory_0();
|
|
2246
2222
|
return this_0.u();
|
|
2247
2223
|
}
|
|
2248
2224
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
2249
2225
|
// Inline function 'kotlin.getValue' call
|
|
2250
|
-
var this_0 = $this.
|
|
2226
|
+
var this_0 = $this.v9g_1;
|
|
2251
2227
|
scenePositionProvider$factory_0();
|
|
2252
2228
|
return this_0.u();
|
|
2253
2229
|
}
|
|
2254
2230
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
2255
2231
|
// Inline function 'kotlin.getValue' call
|
|
2256
|
-
var this_0 = $this.
|
|
2232
|
+
var this_0 = $this.w9g_1;
|
|
2257
2233
|
toClientEventsObserver$factory_2();
|
|
2258
2234
|
return this_0.u();
|
|
2259
2235
|
}
|
|
2260
2236
|
function ServerGameStoreContract$_get_middlewares_$lambda_qmuw9r(player) {
|
|
2261
|
-
return !player.
|
|
2237
|
+
return !player.x6s();
|
|
2262
2238
|
}
|
|
2263
2239
|
function ServerGameStoreContract(di, validationStoreContract, timersStoreContract, botGameStoreContract, gameMechanicStoreContract, fileLoggerStoreContract) {
|
|
2264
2240
|
validationStoreContract = validationStoreContract === VOID ? new ValidationStoreContract(di, true, true, null) : validationStoreContract;
|
|
@@ -2266,77 +2242,77 @@
|
|
|
2266
2242
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
2267
2243
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
2268
2244
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
2269
|
-
this.
|
|
2270
|
-
this.
|
|
2271
|
-
this.
|
|
2272
|
-
this.
|
|
2273
|
-
this.
|
|
2245
|
+
this.i9g_1 = validationStoreContract;
|
|
2246
|
+
this.j9g_1 = timersStoreContract;
|
|
2247
|
+
this.k9g_1 = botGameStoreContract;
|
|
2248
|
+
this.l9g_1 = gameMechanicStoreContract;
|
|
2249
|
+
this.m9g_1 = fileLoggerStoreContract;
|
|
2274
2250
|
var tmp = this;
|
|
2275
2251
|
// Inline function 'org.kodein.di.instance' call
|
|
2276
2252
|
// Inline function 'org.kodein.type.generic' call
|
|
2277
2253
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
2278
2254
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2279
|
-
tmp.
|
|
2255
|
+
tmp.n9g_1 = Instance(di, tmp$ret$0, null).e60(this, asyncProvider$factory());
|
|
2280
2256
|
var tmp_1 = this;
|
|
2281
2257
|
// Inline function 'org.kodein.di.instance' call
|
|
2282
2258
|
// Inline function 'org.kodein.type.generic' call
|
|
2283
2259
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2284
2260
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2285
|
-
tmp_1.
|
|
2261
|
+
tmp_1.o9g_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory_1());
|
|
2286
2262
|
var tmp_3 = this;
|
|
2287
2263
|
// Inline function 'org.kodein.di.instance' call
|
|
2288
2264
|
// Inline function 'org.kodein.type.generic' call
|
|
2289
2265
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2290
2266
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2291
|
-
tmp_3.
|
|
2267
|
+
tmp_3.p9g_1 = Instance(di, tmp$ret$4, null).e60(this, playerConnectionInteractor$factory_1());
|
|
2292
2268
|
var tmp_5 = this;
|
|
2293
2269
|
// Inline function 'org.kodein.di.instance' call
|
|
2294
2270
|
// Inline function 'org.kodein.type.generic' call
|
|
2295
2271
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
2296
2272
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2297
|
-
tmp_5.
|
|
2273
|
+
tmp_5.q9g_1 = Instance(di, tmp$ret$6, null).e60(this, lastCardInteractor$factory());
|
|
2298
2274
|
var tmp_7 = this;
|
|
2299
2275
|
// Inline function 'org.kodein.di.instance' call
|
|
2300
2276
|
// Inline function 'org.kodein.type.generic' call
|
|
2301
2277
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2302
2278
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2303
|
-
tmp_7.
|
|
2279
|
+
tmp_7.r9g_1 = Instance(di, tmp$ret$8, null).e60(this, serverConfig$factory());
|
|
2304
2280
|
var tmp_9 = this;
|
|
2305
2281
|
// Inline function 'org.kodein.di.instance' call
|
|
2306
2282
|
// Inline function 'org.kodein.type.generic' call
|
|
2307
2283
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
2308
2284
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2309
|
-
tmp_9.
|
|
2285
|
+
tmp_9.s9g_1 = Instance(di, tmp$ret$10, null).e60(this, logicConfig$factory());
|
|
2310
2286
|
var tmp_11 = this;
|
|
2311
2287
|
// Inline function 'org.kodein.di.instance' call
|
|
2312
2288
|
// Inline function 'org.kodein.type.generic' call
|
|
2313
2289
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2314
2290
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2315
|
-
tmp_11.
|
|
2291
|
+
tmp_11.t9g_1 = Instance(di, tmp$ret$12, null).e60(this, idsProvider$factory());
|
|
2316
2292
|
var tmp_13 = this;
|
|
2317
2293
|
// Inline function 'org.kodein.di.instance' call
|
|
2318
2294
|
// Inline function 'org.kodein.type.generic' call
|
|
2319
2295
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
2320
2296
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
2321
|
-
tmp_13.
|
|
2297
|
+
tmp_13.u9g_1 = Instance(di, tmp$ret$14, null).e60(this, botConfig$factory());
|
|
2322
2298
|
var tmp_15 = this;
|
|
2323
2299
|
// Inline function 'org.kodein.di.instance' call
|
|
2324
2300
|
// Inline function 'org.kodein.type.generic' call
|
|
2325
2301
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
2326
2302
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2327
|
-
tmp_15.
|
|
2303
|
+
tmp_15.v9g_1 = Instance(di, tmp$ret$16, null).e60(this, scenePositionProvider$factory());
|
|
2328
2304
|
var tmp_17 = this;
|
|
2329
2305
|
// Inline function 'org.kodein.di.instance' call
|
|
2330
2306
|
// Inline function 'org.kodein.type.generic' call
|
|
2331
2307
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2332
2308
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
2333
|
-
tmp_17.
|
|
2309
|
+
tmp_17.w9g_1 = Instance(di, tmp$ret$18, null).e60(this, toClientEventsObserver$factory_1());
|
|
2334
2310
|
}
|
|
2335
|
-
protoOf(ServerGameStoreContract).
|
|
2336
|
-
return plus(plus(plus(plus(plus(this.
|
|
2311
|
+
protoOf(ServerGameStoreContract).x8q = function () {
|
|
2312
|
+
return plus(plus(plus(plus(plus(this.i9g_1.x8q(), this.j9g_1.x8q()), this.k9g_1.x8q()), this.l9g_1.x8q()), this.m9g_1.x8q()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
2337
2313
|
};
|
|
2338
|
-
protoOf(ServerGameStoreContract).
|
|
2339
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
2314
|
+
protoOf(ServerGameStoreContract).y8q = function () {
|
|
2315
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.i9g_1.y8q(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.j9g_1.y8q()), this.k9g_1.y8q()), this.l9g_1.y8q()), this.m9g_1.y8q()), 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))).q8s(), finishingGameWhenCantStartNewMiddleware()]));
|
|
2340
2316
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
2341
2317
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
2342
2318
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -2466,7 +2442,7 @@
|
|
|
2466
2442
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
2467
2443
|
next(action_0);
|
|
2468
2444
|
var state = store.state;
|
|
2469
|
-
if (!get_serverState_0(state).
|
|
2445
|
+
if (!get_serverState_0(state).z9c_1.a9d_1 && action_0.isGameFinished) {
|
|
2470
2446
|
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.y6l_1));
|
|
2471
2447
|
}
|
|
2472
2448
|
};
|
|
@@ -2479,7 +2455,7 @@
|
|
|
2479
2455
|
};
|
|
2480
2456
|
}
|
|
2481
2457
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
2482
|
-
this.
|
|
2458
|
+
this.z9g_1 = this$0;
|
|
2483
2459
|
}
|
|
2484
2460
|
protoOf(_no_name_provided__qut3iv_0).d6f = function (action) {
|
|
2485
2461
|
return action instanceof MechanicAction;
|
|
@@ -2494,11 +2470,11 @@
|
|
|
2494
2470
|
var tmp;
|
|
2495
2471
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
2496
2472
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2497
|
-
var this_0 = this.
|
|
2498
|
-
var tableId = action_0.
|
|
2499
|
-
var gameCreatorPlayerId = action_0.
|
|
2473
|
+
var this_0 = this.z9g_1;
|
|
2474
|
+
var tableId = action_0.p8n_1;
|
|
2475
|
+
var gameCreatorPlayerId = action_0.r8n_1;
|
|
2500
2476
|
// Inline function 'kotlin.collections.map' call
|
|
2501
|
-
var this_1 = action_0.
|
|
2477
|
+
var this_1 = action_0.s8n_1;
|
|
2502
2478
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2503
2479
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
2504
2480
|
var tmp0_iterator = this_1.j();
|
|
@@ -2539,7 +2515,7 @@
|
|
|
2539
2515
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2540
2516
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2541
2517
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2542
|
-
var tmp0_aid = this_0.
|
|
2518
|
+
var tmp0_aid = this_0.y9g_1.g6d();
|
|
2543
2519
|
// Inline function 'kotlin.collections.map' call
|
|
2544
2520
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2545
2521
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
@@ -2564,17 +2540,17 @@
|
|
|
2564
2540
|
} else {
|
|
2565
2541
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
2566
2542
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2567
|
-
var this_2 = this.
|
|
2543
|
+
var this_2 = this.z9g_1;
|
|
2568
2544
|
var table = state.a6n();
|
|
2569
2545
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2570
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
2546
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.y9g_1.g6d(), table.id, null);
|
|
2571
2547
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
2572
2548
|
tmp = listOfNotNull(tmp$ret$18);
|
|
2573
2549
|
} else {
|
|
2574
2550
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
2575
2551
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2576
|
-
var this_3 = this.
|
|
2577
|
-
var tableId_0 = action_0.
|
|
2552
|
+
var this_3 = this.z9g_1;
|
|
2553
|
+
var tableId_0 = action_0.v8n_1.id;
|
|
2578
2554
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
2579
2555
|
var players = getPlayers();
|
|
2580
2556
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -2608,7 +2584,7 @@
|
|
|
2608
2584
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2609
2585
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2610
2586
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2611
|
-
var tmp0_aid_0 = this_3.
|
|
2587
|
+
var tmp0_aid_0 = this_3.y9g_1.g6d();
|
|
2612
2588
|
// Inline function 'kotlin.collections.map' call
|
|
2613
2589
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2614
2590
|
var destination_7 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players, 10));
|
|
@@ -2633,43 +2609,43 @@
|
|
|
2633
2609
|
} else {
|
|
2634
2610
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
2635
2611
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2636
|
-
var this_4 = this.
|
|
2612
|
+
var this_4 = this.z9g_1;
|
|
2637
2613
|
var table_0 = state.a6n();
|
|
2638
2614
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2639
|
-
var sendToPlayer_2 = new RoomActionPayload(this_4.
|
|
2615
|
+
var sendToPlayer_2 = new RoomActionPayload(this_4.y9g_1.g6d(), table_0.id, null);
|
|
2640
2616
|
var tmp$ret$35 = mapToClient_14(action_0, sendToPlayer_2);
|
|
2641
2617
|
tmp = listOfNotNull(tmp$ret$35);
|
|
2642
2618
|
} else {
|
|
2643
2619
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
2644
2620
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2645
|
-
var this_5 = this.
|
|
2621
|
+
var this_5 = this.z9g_1;
|
|
2646
2622
|
var table_1 = state.a6n();
|
|
2647
2623
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2648
|
-
var sendToPlayer_3 = new RoomActionPayload(this_5.
|
|
2624
|
+
var sendToPlayer_3 = new RoomActionPayload(this_5.y9g_1.g6d(), table_1.id, null);
|
|
2649
2625
|
var tmp$ret$37 = mapToClient_13(action_0, sendToPlayer_3);
|
|
2650
2626
|
tmp = listOfNotNull(tmp$ret$37);
|
|
2651
2627
|
} else {
|
|
2652
2628
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
2653
2629
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2654
|
-
var this_6 = this.
|
|
2630
|
+
var this_6 = this.z9g_1;
|
|
2655
2631
|
var table_2 = state.a6n();
|
|
2656
2632
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2657
|
-
var sendToPlayer_4 = new RoomActionPayload(this_6.
|
|
2633
|
+
var sendToPlayer_4 = new RoomActionPayload(this_6.y9g_1.g6d(), table_2.id, null);
|
|
2658
2634
|
var tmp$ret$39 = mapToClient_12(action_0, sendToPlayer_4);
|
|
2659
2635
|
tmp = listOfNotNull(tmp$ret$39);
|
|
2660
2636
|
} else {
|
|
2661
2637
|
if (action_0 instanceof ErrorAction) {
|
|
2662
2638
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2663
|
-
var this_7 = this.
|
|
2639
|
+
var this_7 = this.z9g_1;
|
|
2664
2640
|
var table_3 = state.a6n();
|
|
2665
2641
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2666
|
-
var sendToPlayer_5 = new RoomActionPayload(this_7.
|
|
2642
|
+
var sendToPlayer_5 = new RoomActionPayload(this_7.y9g_1.g6d(), table_3.id, null);
|
|
2667
2643
|
var tmp$ret$41 = mapToClient_11(action_0, sendToPlayer_5);
|
|
2668
2644
|
tmp = listOfNotNull(tmp$ret$41);
|
|
2669
2645
|
} else {
|
|
2670
2646
|
if (action_0 instanceof SceneMechanicAction) {
|
|
2671
2647
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2672
|
-
var this_8 = this.
|
|
2648
|
+
var this_8 = this.z9g_1;
|
|
2673
2649
|
var table_4 = state.a6n();
|
|
2674
2650
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2675
2651
|
var tableId_1 = table_4.id;
|
|
@@ -2706,7 +2682,7 @@
|
|
|
2706
2682
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2707
2683
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2708
2684
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2709
|
-
var tmp0_aid_1 = this_8.
|
|
2685
|
+
var tmp0_aid_1 = this_8.y9g_1.g6d();
|
|
2710
2686
|
// Inline function 'kotlin.collections.map' call
|
|
2711
2687
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2712
2688
|
var destination_11 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_0, 10));
|
|
@@ -2731,7 +2707,7 @@
|
|
|
2731
2707
|
} else {
|
|
2732
2708
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
2733
2709
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2734
|
-
var this_9 = this.
|
|
2710
|
+
var this_9 = this.z9g_1;
|
|
2735
2711
|
var table_5 = state.a6n();
|
|
2736
2712
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2737
2713
|
var tableId_2 = table_5.id;
|
|
@@ -2768,7 +2744,7 @@
|
|
|
2768
2744
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2769
2745
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2770
2746
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2771
|
-
var tmp0_aid_2 = this_9.
|
|
2747
|
+
var tmp0_aid_2 = this_9.y9g_1.g6d();
|
|
2772
2748
|
// Inline function 'kotlin.collections.map' call
|
|
2773
2749
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2774
2750
|
var destination_15 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_1, 10));
|
|
@@ -2793,7 +2769,7 @@
|
|
|
2793
2769
|
} else {
|
|
2794
2770
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
2795
2771
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2796
|
-
var this_10 = this.
|
|
2772
|
+
var this_10 = this.z9g_1;
|
|
2797
2773
|
var table_6 = state.a6n();
|
|
2798
2774
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2799
2775
|
var tableId_3 = table_6.id;
|
|
@@ -2830,7 +2806,7 @@
|
|
|
2830
2806
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2831
2807
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2832
2808
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2833
|
-
var tmp0_aid_3 = this_10.
|
|
2809
|
+
var tmp0_aid_3 = this_10.y9g_1.g6d();
|
|
2834
2810
|
// Inline function 'kotlin.collections.map' call
|
|
2835
2811
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2836
2812
|
var destination_19 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_2, 10));
|
|
@@ -2843,7 +2819,7 @@
|
|
|
2843
2819
|
}
|
|
2844
2820
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_19);
|
|
2845
2821
|
var tmp_0;
|
|
2846
|
-
if (this.
|
|
2822
|
+
if (this.z9g_1.x9g_1.supportBackwardActions && getPlayer(state.a6n().players, sendToPlayer_8.e79_1).u6s_1.z6s_1) {
|
|
2847
2823
|
tmp_0 = null;
|
|
2848
2824
|
} else {
|
|
2849
2825
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -2861,79 +2837,79 @@
|
|
|
2861
2837
|
} else {
|
|
2862
2838
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
2863
2839
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2864
|
-
var this_11 = this.
|
|
2840
|
+
var this_11 = this.z9g_1;
|
|
2865
2841
|
var table_7 = state.a6n();
|
|
2866
|
-
var exceptPlayerId = this.
|
|
2842
|
+
var exceptPlayerId = this.z9g_1.x9g_1.supportBackwardActions ? action_0.p8o_1 : null;
|
|
2867
2843
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2868
|
-
var sendToPlayer_9 = new RoomActionPayload(this_11.
|
|
2844
|
+
var sendToPlayer_9 = new RoomActionPayload(this_11.y9g_1.g6d(), table_7.id, exceptPlayerId);
|
|
2869
2845
|
var tmp$ret$91 = mapToClient_7(action_0, sendToPlayer_9);
|
|
2870
2846
|
tmp = listOfNotNull(tmp$ret$91);
|
|
2871
2847
|
} else {
|
|
2872
2848
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
2873
2849
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2874
|
-
var this_12 = this.
|
|
2850
|
+
var this_12 = this.z9g_1;
|
|
2875
2851
|
var table_8 = state.a6n();
|
|
2876
|
-
var exceptPlayerId_0 = this.
|
|
2852
|
+
var exceptPlayerId_0 = this.z9g_1.x9g_1.supportBackwardActions ? action_0.t8j_1 : null;
|
|
2877
2853
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2878
|
-
var sendToPlayer_10 = new RoomActionPayload(this_12.
|
|
2854
|
+
var sendToPlayer_10 = new RoomActionPayload(this_12.y9g_1.g6d(), table_8.id, exceptPlayerId_0);
|
|
2879
2855
|
var tmp$ret$93 = mapToClient_6(action_0, sendToPlayer_10);
|
|
2880
2856
|
tmp = listOfNotNull(tmp$ret$93);
|
|
2881
2857
|
} else {
|
|
2882
2858
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
2883
2859
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2884
|
-
var this_13 = this.
|
|
2860
|
+
var this_13 = this.z9g_1;
|
|
2885
2861
|
var table_9 = state.a6n();
|
|
2886
2862
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2887
|
-
var sendToPlayer_11 = new RoomActionPayload(this_13.
|
|
2863
|
+
var sendToPlayer_11 = new RoomActionPayload(this_13.y9g_1.g6d(), table_9.id, null);
|
|
2888
2864
|
var tmp$ret$95 = mapToClient_5(action_0, sendToPlayer_11);
|
|
2889
2865
|
tmp = listOfNotNull(tmp$ret$95);
|
|
2890
2866
|
} else {
|
|
2891
2867
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
2892
2868
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2893
|
-
var this_14 = this.
|
|
2869
|
+
var this_14 = this.z9g_1;
|
|
2894
2870
|
var table_10 = state.a6n();
|
|
2895
|
-
var exceptPlayerId_1 = this.
|
|
2871
|
+
var exceptPlayerId_1 = this.z9g_1.x9g_1.supportBackwardActions ? action_0.v8o_1 : null;
|
|
2896
2872
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2897
|
-
var sendToPlayer_12 = new RoomActionPayload(this_14.
|
|
2873
|
+
var sendToPlayer_12 = new RoomActionPayload(this_14.y9g_1.g6d(), table_10.id, exceptPlayerId_1);
|
|
2898
2874
|
var tmp$ret$97 = mapToClient_4(action_0, sendToPlayer_12);
|
|
2899
2875
|
tmp = listOfNotNull(tmp$ret$97);
|
|
2900
2876
|
} else {
|
|
2901
2877
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
2902
2878
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2903
|
-
var this_15 = this.
|
|
2879
|
+
var this_15 = this.z9g_1;
|
|
2904
2880
|
var table_11 = state.a6n();
|
|
2905
|
-
var exceptPlayerId_2 = this.
|
|
2881
|
+
var exceptPlayerId_2 = this.z9g_1.x9g_1.supportBackwardActions ? action_0.y8j_1 : null;
|
|
2906
2882
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2907
|
-
var sendToPlayer_13 = new RoomActionPayload(this_15.
|
|
2883
|
+
var sendToPlayer_13 = new RoomActionPayload(this_15.y9g_1.g6d(), table_11.id, exceptPlayerId_2);
|
|
2908
2884
|
var tmp$ret$99 = mapToClient_3(action_0, sendToPlayer_13);
|
|
2909
2885
|
tmp = listOfNotNull(tmp$ret$99);
|
|
2910
2886
|
} else {
|
|
2911
2887
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
2912
2888
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2913
|
-
var this_16 = this.
|
|
2889
|
+
var this_16 = this.z9g_1;
|
|
2914
2890
|
var table_12 = state.a6n();
|
|
2915
2891
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2916
|
-
var sendToPlayer_14 = new RoomActionPayload(this_16.
|
|
2892
|
+
var sendToPlayer_14 = new RoomActionPayload(this_16.y9g_1.g6d(), table_12.id, null);
|
|
2917
2893
|
var tmp$ret$101 = mapToClient_2(action_0, sendToPlayer_14);
|
|
2918
2894
|
tmp = listOfNotNull(tmp$ret$101);
|
|
2919
2895
|
} else {
|
|
2920
2896
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
2921
2897
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2922
|
-
var this_17 = this.
|
|
2898
|
+
var this_17 = this.z9g_1;
|
|
2923
2899
|
var table_13 = state.a6n();
|
|
2924
2900
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2925
|
-
var sendToPlayer_15 = new RoomActionPayload(this_17.
|
|
2901
|
+
var sendToPlayer_15 = new RoomActionPayload(this_17.y9g_1.g6d(), table_13.id, null);
|
|
2926
2902
|
var tmp$ret$103 = mapToClient_1(action_0, sendToPlayer_15);
|
|
2927
2903
|
tmp = listOfNotNull(tmp$ret$103);
|
|
2928
2904
|
} else {
|
|
2929
2905
|
if (action_0 instanceof MessageMechanicAction) {
|
|
2930
|
-
var message = action_0.
|
|
2906
|
+
var message = action_0.z8o_1;
|
|
2931
2907
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2932
|
-
var this_18 = this.
|
|
2908
|
+
var this_18 = this.z9g_1;
|
|
2933
2909
|
var table_14 = state.a6n();
|
|
2934
2910
|
var tmp_1;
|
|
2935
2911
|
var tmp_2;
|
|
2936
|
-
if (this.
|
|
2912
|
+
if (this.z9g_1.x9g_1.supportBackwardActions) {
|
|
2937
2913
|
tmp_2 = isInterface(message, UserMessage);
|
|
2938
2914
|
} else {
|
|
2939
2915
|
tmp_2 = false;
|
|
@@ -2945,17 +2921,17 @@
|
|
|
2945
2921
|
}
|
|
2946
2922
|
var exceptPlayerId_3 = tmp_1;
|
|
2947
2923
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2948
|
-
var sendToPlayer_16 = new RoomActionPayload(this_18.
|
|
2924
|
+
var sendToPlayer_16 = new RoomActionPayload(this_18.y9g_1.g6d(), table_14.id, exceptPlayerId_3);
|
|
2949
2925
|
var tmp$ret$105 = mapToClient_0(action_0, sendToPlayer_16);
|
|
2950
2926
|
tmp = listOfNotNull(tmp$ret$105);
|
|
2951
2927
|
} else {
|
|
2952
2928
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
2953
2929
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2954
|
-
var this_19 = this.
|
|
2930
|
+
var this_19 = this.z9g_1;
|
|
2955
2931
|
var table_15 = state.a6n();
|
|
2956
2932
|
var exceptPlayerId_4 = action_0.playerId;
|
|
2957
2933
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2958
|
-
var sendToPlayer_17 = new RoomActionPayload(this_19.
|
|
2934
|
+
var sendToPlayer_17 = new RoomActionPayload(this_19.y9g_1.g6d(), table_15.id, exceptPlayerId_4);
|
|
2959
2935
|
var tmp$ret$107 = mapToClient(action_0, sendToPlayer_17);
|
|
2960
2936
|
tmp = listOfNotNull(tmp$ret$107);
|
|
2961
2937
|
} else {
|
|
@@ -2993,10 +2969,10 @@
|
|
|
2993
2969
|
return this.u6g(store, next, action);
|
|
2994
2970
|
};
|
|
2995
2971
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
2996
|
-
this.
|
|
2997
|
-
this.
|
|
2972
|
+
this.x9g_1 = logicConfig;
|
|
2973
|
+
this.y9g_1 = idsProvider;
|
|
2998
2974
|
}
|
|
2999
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
2975
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).q8s = function () {
|
|
3000
2976
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
3001
2977
|
return new _no_name_provided__qut3iv_0(this);
|
|
3002
2978
|
};
|
|
@@ -3005,8 +2981,8 @@
|
|
|
3005
2981
|
return new _no_name_provided__qut3iv_1(asyncProvider, provider);
|
|
3006
2982
|
}
|
|
3007
2983
|
function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
3008
|
-
this.
|
|
3009
|
-
this.
|
|
2984
|
+
this.i9h_1 = $provider;
|
|
2985
|
+
this.j9h_1 = $action;
|
|
3010
2986
|
CoroutineImpl.call(this, resultContinuation);
|
|
3011
2987
|
}
|
|
3012
2988
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -3027,7 +3003,7 @@
|
|
|
3027
3003
|
case 0:
|
|
3028
3004
|
this.f9_1 = 2;
|
|
3029
3005
|
this.e9_1 = 1;
|
|
3030
|
-
suspendResult = this.
|
|
3006
|
+
suspendResult = this.i9h_1.t9d(this.j9h_1, this);
|
|
3031
3007
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3032
3008
|
return suspendResult;
|
|
3033
3009
|
}
|
|
@@ -3050,8 +3026,8 @@
|
|
|
3050
3026
|
while (true);
|
|
3051
3027
|
};
|
|
3052
3028
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).i1d = function ($this$launchDefault, completion) {
|
|
3053
|
-
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.
|
|
3054
|
-
i.
|
|
3029
|
+
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.i9h_1, this.j9h_1, completion);
|
|
3030
|
+
i.k9h_1 = $this$launchDefault;
|
|
3055
3031
|
return i;
|
|
3056
3032
|
};
|
|
3057
3033
|
function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -3063,8 +3039,8 @@
|
|
|
3063
3039
|
return l;
|
|
3064
3040
|
}
|
|
3065
3041
|
function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
|
|
3066
|
-
this.
|
|
3067
|
-
this.
|
|
3042
|
+
this.l9h_1 = $asyncProvider;
|
|
3043
|
+
this.m9h_1 = $provider;
|
|
3068
3044
|
}
|
|
3069
3045
|
protoOf(_no_name_provided__qut3iv_1).d6f = function (action) {
|
|
3070
3046
|
return action instanceof ToClientAction;
|
|
@@ -3072,7 +3048,7 @@
|
|
|
3072
3048
|
protoOf(_no_name_provided__qut3iv_1).u6g = function (store, next, action) {
|
|
3073
3049
|
// Inline function 'games.jass.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
|
|
3074
3050
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
3075
|
-
this.
|
|
3051
|
+
this.l9h_1.d6c(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.m9h_1, action_0, null));
|
|
3076
3052
|
next(action_0);
|
|
3077
3053
|
};
|
|
3078
3054
|
protoOf(_no_name_provided__qut3iv_1).c6f = function (store, next, action) {
|
|
@@ -3087,13 +3063,13 @@
|
|
|
3087
3063
|
protoOf(_no_name_provided__qut3iv_2).d6f = function (action) {
|
|
3088
3064
|
return action instanceof UpdateServerConfigAction;
|
|
3089
3065
|
};
|
|
3090
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3066
|
+
protoOf(_no_name_provided__qut3iv_2).l8z = function (state, action) {
|
|
3091
3067
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
3092
3068
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
3093
|
-
return state.
|
|
3069
|
+
return state.q8m(VOID, get_serverState_0(state).n9h(action_0.f9g_1));
|
|
3094
3070
|
};
|
|
3095
3071
|
protoOf(_no_name_provided__qut3iv_2).v6g = function (state, action) {
|
|
3096
|
-
return this.
|
|
3072
|
+
return this.l8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3097
3073
|
};
|
|
3098
3074
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
3099
3075
|
return function (it) {
|
|
@@ -3106,7 +3082,7 @@
|
|
|
3106
3082
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
3107
3083
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
3108
3084
|
Companion_getInstance();
|
|
3109
|
-
var this_0 = $action.
|
|
3085
|
+
var this_0 = $action.o8n_1.timeoutTimeMillis;
|
|
3110
3086
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
3111
3087
|
tmp_0 = tmp_1.e68(tmp_2, tmp$ret$0);
|
|
3112
3088
|
}
|
|
@@ -3115,47 +3091,47 @@
|
|
|
3115
3091
|
}
|
|
3116
3092
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
3117
3093
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
3118
|
-
this.
|
|
3094
|
+
this.q9h_1 = logger;
|
|
3119
3095
|
}
|
|
3120
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3096
|
+
protoOf(ServerMechanicLifecycleReducer).x90 = function (state, action) {
|
|
3121
3097
|
var serverState = get_serverStateOrNull(state.z6l_1);
|
|
3122
3098
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3123
|
-
var tmp0_$this = this.
|
|
3124
|
-
var tmp1_tableId = action.
|
|
3125
|
-
var tmp2_gameId = action.
|
|
3126
|
-
var tmp3_version = action.
|
|
3127
|
-
var tmp4_config = action.
|
|
3128
|
-
var tmp5_users = action.
|
|
3099
|
+
var tmp0_$this = this.y90_1;
|
|
3100
|
+
var tmp1_tableId = action.p8n_1;
|
|
3101
|
+
var tmp2_gameId = action.p8n_1;
|
|
3102
|
+
var tmp3_version = action.q8n_1;
|
|
3103
|
+
var tmp4_config = action.o8n_1;
|
|
3104
|
+
var tmp5_users = action.s8n_1;
|
|
3129
3105
|
var tmp6_spectators = action.spectators;
|
|
3130
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
3131
|
-
var tmp9_tableOrNull = tmp0_$this.
|
|
3106
|
+
var tmp7_gameCreatorPlayerId = action.r8n_1;
|
|
3107
|
+
var tmp9_tableOrNull = tmp0_$this.e92(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
3132
3108
|
var tmp;
|
|
3133
3109
|
if (serverState == null) {
|
|
3134
|
-
this.
|
|
3135
|
-
tmp =
|
|
3110
|
+
this.q9h_1.w(VOID, 'ServerPayload is not onStart');
|
|
3111
|
+
tmp = Companion_instance_9.p9d();
|
|
3136
3112
|
} else {
|
|
3137
3113
|
tmp = serverState;
|
|
3138
3114
|
}
|
|
3139
3115
|
var tmp10_payload = tmp;
|
|
3140
|
-
return state.
|
|
3116
|
+
return state.q8m(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
3141
3117
|
};
|
|
3142
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3143
|
-
this.
|
|
3118
|
+
protoOf(ServerMechanicLifecycleReducer).w90 = function (state, action) {
|
|
3119
|
+
this.z90_1.r5n(action.previousGameId);
|
|
3144
3120
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3145
|
-
var tmp1_tableOrNull = this.
|
|
3146
|
-
return state.
|
|
3121
|
+
var tmp1_tableOrNull = this.y90_1.f92(state.a6n(), action.gameId);
|
|
3122
|
+
return state.q8m(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
3147
3123
|
};
|
|
3148
3124
|
function spectatorsReducer(logger) {
|
|
3149
3125
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
3150
3126
|
return new _no_name_provided__qut3iv_3(logger);
|
|
3151
3127
|
}
|
|
3152
3128
|
function _no_name_provided__qut3iv_3($logger) {
|
|
3153
|
-
this.
|
|
3129
|
+
this.r9h_1 = $logger;
|
|
3154
3130
|
}
|
|
3155
3131
|
protoOf(_no_name_provided__qut3iv_3).d6f = function (action) {
|
|
3156
3132
|
return isInterface(action, SpectatorsAction);
|
|
3157
3133
|
};
|
|
3158
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3134
|
+
protoOf(_no_name_provided__qut3iv_3).l8z = function (state, action) {
|
|
3159
3135
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
3160
3136
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
3161
3137
|
var table = state.a6n();
|
|
@@ -3163,7 +3139,7 @@
|
|
|
3163
3139
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
3164
3140
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3165
3141
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3166
|
-
var this_0 = action_0.
|
|
3142
|
+
var this_0 = action_0.g9g_1;
|
|
3167
3143
|
var destination = ArrayList_init_$Create$();
|
|
3168
3144
|
// Inline function 'kotlin.collections.forEach' call
|
|
3169
3145
|
var tmp0_iterator = this_0.j();
|
|
@@ -3185,10 +3161,10 @@
|
|
|
3185
3161
|
var tmp_0;
|
|
3186
3162
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3187
3163
|
if (!sameSpectators.p()) {
|
|
3188
|
-
this.
|
|
3164
|
+
this.r9h_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
3189
3165
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3190
3166
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3191
|
-
var this_1 = action_0.
|
|
3167
|
+
var this_1 = action_0.g9g_1;
|
|
3192
3168
|
var destination_0 = ArrayList_init_$Create$();
|
|
3193
3169
|
var tmp0_iterator_0 = this_1.j();
|
|
3194
3170
|
while (tmp0_iterator_0.k()) {
|
|
@@ -3224,7 +3200,7 @@
|
|
|
3224
3200
|
}
|
|
3225
3201
|
tmp_0 = destination_0;
|
|
3226
3202
|
} else {
|
|
3227
|
-
tmp_0 = action_0.
|
|
3203
|
+
tmp_0 = action_0.g9g_1;
|
|
3228
3204
|
}
|
|
3229
3205
|
var this_2 = tmp_0;
|
|
3230
3206
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3237,12 +3213,12 @@
|
|
|
3237
3213
|
destination_1.e(tmp$ret$10);
|
|
3238
3214
|
}
|
|
3239
3215
|
var spectatorsToAdd = toSet(destination_1);
|
|
3240
|
-
tmp = state.
|
|
3216
|
+
tmp = state.q8m(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
3241
3217
|
} else {
|
|
3242
3218
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
3243
3219
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3244
3220
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3245
|
-
var this_3 = action_0.
|
|
3221
|
+
var this_3 = action_0.h9g_1;
|
|
3246
3222
|
var destination_2 = ArrayList_init_$Create$();
|
|
3247
3223
|
// Inline function 'kotlin.collections.forEach' call
|
|
3248
3224
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -3263,10 +3239,10 @@
|
|
|
3263
3239
|
var tmp_2;
|
|
3264
3240
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3265
3241
|
if (!sameSpectators_0.p()) {
|
|
3266
|
-
this.
|
|
3242
|
+
this.r9h_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
3267
3243
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3268
3244
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3269
|
-
var this_4 = action_0.
|
|
3245
|
+
var this_4 = action_0.h9g_1;
|
|
3270
3246
|
var destination_3 = ArrayList_init_$Create$();
|
|
3271
3247
|
var tmp0_iterator_4 = this_4.j();
|
|
3272
3248
|
while (tmp0_iterator_4.k()) {
|
|
@@ -3302,7 +3278,7 @@
|
|
|
3302
3278
|
}
|
|
3303
3279
|
tmp_2 = destination_3;
|
|
3304
3280
|
} else {
|
|
3305
|
-
tmp_2 = action_0.
|
|
3281
|
+
tmp_2 = action_0.h9g_1;
|
|
3306
3282
|
}
|
|
3307
3283
|
var spectatorsToRemove = toSet(tmp_2);
|
|
3308
3284
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -3341,7 +3317,7 @@
|
|
|
3341
3317
|
destination_4.e(element_5);
|
|
3342
3318
|
}
|
|
3343
3319
|
}
|
|
3344
|
-
tmp = state.
|
|
3320
|
+
tmp = state.q8m(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
3345
3321
|
} else {
|
|
3346
3322
|
noWhenBranchMatchedException();
|
|
3347
3323
|
}
|
|
@@ -3349,32 +3325,32 @@
|
|
|
3349
3325
|
return tmp;
|
|
3350
3326
|
};
|
|
3351
3327
|
protoOf(_no_name_provided__qut3iv_3).v6g = function (state, action) {
|
|
3352
|
-
return this.
|
|
3328
|
+
return this.l8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3353
3329
|
};
|
|
3354
3330
|
function Companion_1() {
|
|
3355
3331
|
}
|
|
3356
|
-
protoOf(Companion_1).
|
|
3332
|
+
protoOf(Companion_1).s9h = function (config) {
|
|
3357
3333
|
return new ServerState(config);
|
|
3358
3334
|
};
|
|
3359
|
-
protoOf(Companion_1).
|
|
3335
|
+
protoOf(Companion_1).p9d = function (config, $super) {
|
|
3360
3336
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
3361
|
-
return $super === VOID ? this.
|
|
3337
|
+
return $super === VOID ? this.s9h(config) : $super.s9h.call(this, config);
|
|
3362
3338
|
};
|
|
3363
|
-
var
|
|
3364
|
-
function
|
|
3365
|
-
return
|
|
3339
|
+
var Companion_instance_9;
|
|
3340
|
+
function Companion_getInstance_2() {
|
|
3341
|
+
return Companion_instance_9;
|
|
3366
3342
|
}
|
|
3367
3343
|
function ServerState(config) {
|
|
3368
|
-
this.
|
|
3344
|
+
this.z9c_1 = config;
|
|
3369
3345
|
}
|
|
3370
|
-
protoOf(ServerState).
|
|
3346
|
+
protoOf(ServerState).n9h = function (config) {
|
|
3371
3347
|
return new ServerState(config);
|
|
3372
3348
|
};
|
|
3373
3349
|
protoOf(ServerState).toString = function () {
|
|
3374
|
-
return 'ServerState(config=' + this.
|
|
3350
|
+
return 'ServerState(config=' + this.z9c_1.toString() + ')';
|
|
3375
3351
|
};
|
|
3376
3352
|
protoOf(ServerState).hashCode = function () {
|
|
3377
|
-
return this.
|
|
3353
|
+
return this.z9c_1.hashCode();
|
|
3378
3354
|
};
|
|
3379
3355
|
protoOf(ServerState).equals = function (other) {
|
|
3380
3356
|
if (this === other)
|
|
@@ -3382,7 +3358,7 @@
|
|
|
3382
3358
|
if (!(other instanceof ServerState))
|
|
3383
3359
|
return false;
|
|
3384
3360
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
3385
|
-
if (!this.
|
|
3361
|
+
if (!this.z9c_1.equals(tmp0_other_with_cast.z9c_1))
|
|
3386
3362
|
return false;
|
|
3387
3363
|
return true;
|
|
3388
3364
|
};
|
|
@@ -3412,1037 +3388,6 @@
|
|
|
3412
3388
|
var tmp$ret$2 = tmp$ret$1;
|
|
3413
3389
|
return get_serverState(tmp$ret$2);
|
|
3414
3390
|
}
|
|
3415
|
-
function GameHelper() {
|
|
3416
|
-
}
|
|
3417
|
-
function prepareConfigObjectInternal($this, map) {
|
|
3418
|
-
var jsObject = {};
|
|
3419
|
-
var tmp = map.g2('players');
|
|
3420
|
-
var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
|
|
3421
|
-
var tmp_0;
|
|
3422
|
-
if (tmp0_safe_receiver == null) {
|
|
3423
|
-
tmp_0 = null;
|
|
3424
|
-
} else {
|
|
3425
|
-
// Inline function 'kotlin.collections.onEach' call
|
|
3426
|
-
// Inline function 'kotlin.apply' call
|
|
3427
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3428
|
-
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
3429
|
-
var inductionVariable = 0;
|
|
3430
|
-
var last = tmp0_safe_receiver.length;
|
|
3431
|
-
while (inductionVariable < last) {
|
|
3432
|
-
var element = tmp0_safe_receiver[inductionVariable];
|
|
3433
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
3434
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3435
|
-
validatePlayers($this, element);
|
|
3436
|
-
}
|
|
3437
|
-
tmp_0 = tmp0_safe_receiver;
|
|
3438
|
-
}
|
|
3439
|
-
var tmp1_safe_receiver = tmp_0;
|
|
3440
|
-
var tmp_1;
|
|
3441
|
-
if (tmp1_safe_receiver == null) {
|
|
3442
|
-
tmp_1 = null;
|
|
3443
|
-
} else {
|
|
3444
|
-
// Inline function 'kotlin.takeIf' call
|
|
3445
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3446
|
-
var tmp_2;
|
|
3447
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3448
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3449
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3450
|
-
if (!(tmp1_safe_receiver.length === 0)) {
|
|
3451
|
-
tmp_2 = tmp1_safe_receiver;
|
|
3452
|
-
} else {
|
|
3453
|
-
tmp_2 = null;
|
|
3454
|
-
}
|
|
3455
|
-
tmp_1 = tmp_2;
|
|
3456
|
-
}
|
|
3457
|
-
var players = tmp_1;
|
|
3458
|
-
var tmp_3 = map.g2('points');
|
|
3459
|
-
var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
|
|
3460
|
-
var tmp_4;
|
|
3461
|
-
if (tmp2_safe_receiver == null) {
|
|
3462
|
-
tmp_4 = null;
|
|
3463
|
-
} else {
|
|
3464
|
-
// Inline function 'kotlin.collections.onEach' call
|
|
3465
|
-
// Inline function 'kotlin.apply' call
|
|
3466
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3467
|
-
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
3468
|
-
var inductionVariable_0 = 0;
|
|
3469
|
-
var last_0 = tmp2_safe_receiver.length;
|
|
3470
|
-
while (inductionVariable_0 < last_0) {
|
|
3471
|
-
var element_0 = tmp2_safe_receiver[inductionVariable_0];
|
|
3472
|
-
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
3473
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3474
|
-
validatePoints($this, element_0);
|
|
3475
|
-
}
|
|
3476
|
-
tmp_4 = tmp2_safe_receiver;
|
|
3477
|
-
}
|
|
3478
|
-
var tmp3_safe_receiver = tmp_4;
|
|
3479
|
-
var tmp_5;
|
|
3480
|
-
if (tmp3_safe_receiver == null) {
|
|
3481
|
-
tmp_5 = null;
|
|
3482
|
-
} else {
|
|
3483
|
-
// Inline function 'kotlin.takeIf' call
|
|
3484
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3485
|
-
var tmp_6;
|
|
3486
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3487
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3488
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3489
|
-
if (!(tmp3_safe_receiver.length === 0)) {
|
|
3490
|
-
tmp_6 = tmp3_safe_receiver;
|
|
3491
|
-
} else {
|
|
3492
|
-
tmp_6 = null;
|
|
3493
|
-
}
|
|
3494
|
-
tmp_5 = tmp_6;
|
|
3495
|
-
}
|
|
3496
|
-
var points = tmp_5;
|
|
3497
|
-
var tmp_7 = map.g2('timeoutTime');
|
|
3498
|
-
var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
|
|
3499
|
-
var tmp_8;
|
|
3500
|
-
if (tmp4_safe_receiver == null) {
|
|
3501
|
-
tmp_8 = null;
|
|
3502
|
-
} else {
|
|
3503
|
-
// Inline function 'kotlin.collections.onEach' call
|
|
3504
|
-
// Inline function 'kotlin.apply' call
|
|
3505
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3506
|
-
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
3507
|
-
var inductionVariable_1 = 0;
|
|
3508
|
-
var last_1 = tmp4_safe_receiver.length;
|
|
3509
|
-
while (inductionVariable_1 < last_1) {
|
|
3510
|
-
var element_1 = tmp4_safe_receiver[inductionVariable_1];
|
|
3511
|
-
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
3512
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3513
|
-
validateTimeoutTime($this, element_1);
|
|
3514
|
-
}
|
|
3515
|
-
tmp_8 = tmp4_safe_receiver;
|
|
3516
|
-
}
|
|
3517
|
-
var tmp5_safe_receiver = tmp_8;
|
|
3518
|
-
var tmp_9;
|
|
3519
|
-
if (tmp5_safe_receiver == null) {
|
|
3520
|
-
tmp_9 = null;
|
|
3521
|
-
} else {
|
|
3522
|
-
// Inline function 'kotlin.takeIf' call
|
|
3523
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3524
|
-
var tmp_10;
|
|
3525
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3526
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3527
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3528
|
-
if (!(tmp5_safe_receiver.length === 0)) {
|
|
3529
|
-
tmp_10 = tmp5_safe_receiver;
|
|
3530
|
-
} else {
|
|
3531
|
-
tmp_10 = null;
|
|
3532
|
-
}
|
|
3533
|
-
tmp_9 = tmp_10;
|
|
3534
|
-
}
|
|
3535
|
-
var timeoutTime = tmp_9;
|
|
3536
|
-
var tmp_11 = map.g2('rulesPreset');
|
|
3537
|
-
var tmp6_safe_receiver = (tmp_11 == null ? true : isArray(tmp_11)) ? tmp_11 : null;
|
|
3538
|
-
var tmp_12;
|
|
3539
|
-
if (tmp6_safe_receiver == null) {
|
|
3540
|
-
tmp_12 = null;
|
|
3541
|
-
} else {
|
|
3542
|
-
// Inline function 'kotlin.collections.onEach' call
|
|
3543
|
-
// Inline function 'kotlin.apply' call
|
|
3544
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3545
|
-
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
3546
|
-
var inductionVariable_2 = 0;
|
|
3547
|
-
var last_2 = tmp6_safe_receiver.length;
|
|
3548
|
-
while (inductionVariable_2 < last_2) {
|
|
3549
|
-
var element_2 = tmp6_safe_receiver[inductionVariable_2];
|
|
3550
|
-
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
3551
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3552
|
-
validateRulesSetType($this, element_2);
|
|
3553
|
-
}
|
|
3554
|
-
tmp_12 = tmp6_safe_receiver;
|
|
3555
|
-
}
|
|
3556
|
-
var tmp7_safe_receiver = tmp_12;
|
|
3557
|
-
var tmp_13;
|
|
3558
|
-
if (tmp7_safe_receiver == null) {
|
|
3559
|
-
tmp_13 = null;
|
|
3560
|
-
} else {
|
|
3561
|
-
// Inline function 'kotlin.takeIf' call
|
|
3562
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3563
|
-
var tmp_14;
|
|
3564
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3565
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3566
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3567
|
-
if (!(tmp7_safe_receiver.length === 0)) {
|
|
3568
|
-
tmp_14 = tmp7_safe_receiver;
|
|
3569
|
-
} else {
|
|
3570
|
-
tmp_14 = null;
|
|
3571
|
-
}
|
|
3572
|
-
tmp_13 = tmp_14;
|
|
3573
|
-
}
|
|
3574
|
-
var rulesPreset = tmp_13;
|
|
3575
|
-
var tmp_15 = map.g2('isChatEnabled');
|
|
3576
|
-
var isChatEnabled = (!(tmp_15 == null) ? typeof tmp_15 === 'boolean' : false) ? tmp_15 : null;
|
|
3577
|
-
var tmp_16;
|
|
3578
|
-
if (players == null) {
|
|
3579
|
-
// Inline function 'kotlin.arrayOf' call
|
|
3580
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
3581
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
3582
|
-
tmp_16 = [2, 3, 4, 5];
|
|
3583
|
-
} else {
|
|
3584
|
-
tmp_16 = players;
|
|
3585
|
-
}
|
|
3586
|
-
jsObject['players'] = tmp_16;
|
|
3587
|
-
var tmp_17;
|
|
3588
|
-
if (points == null) {
|
|
3589
|
-
// Inline function 'kotlin.arrayOf' call
|
|
3590
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
3591
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
3592
|
-
tmp_17 = [301, 501, 1001];
|
|
3593
|
-
} else {
|
|
3594
|
-
tmp_17 = points;
|
|
3595
|
-
}
|
|
3596
|
-
jsObject['points'] = tmp_17;
|
|
3597
|
-
var tmp_18;
|
|
3598
|
-
if (timeoutTime == null) {
|
|
3599
|
-
// Inline function 'kotlin.arrayOf' call
|
|
3600
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
3601
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
3602
|
-
tmp_18 = [15, 30, 45];
|
|
3603
|
-
} else {
|
|
3604
|
-
tmp_18 = timeoutTime;
|
|
3605
|
-
}
|
|
3606
|
-
jsObject['timeoutTime'] = tmp_18;
|
|
3607
|
-
var tmp_19;
|
|
3608
|
-
if (rulesPreset == null) {
|
|
3609
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3610
|
-
// Inline function 'kotlin.collections.map' call
|
|
3611
|
-
var this_0 = get_entries();
|
|
3612
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3613
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3614
|
-
var tmp0_iterator = this_0.j();
|
|
3615
|
-
while (tmp0_iterator.k()) {
|
|
3616
|
-
var item = tmp0_iterator.l();
|
|
3617
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3618
|
-
var tmp$ret$33 = item.m2_1;
|
|
3619
|
-
destination.e(tmp$ret$33);
|
|
3620
|
-
}
|
|
3621
|
-
tmp_19 = copyToArray(destination);
|
|
3622
|
-
} else {
|
|
3623
|
-
tmp_19 = rulesPreset;
|
|
3624
|
-
}
|
|
3625
|
-
jsObject['rulesPreset'] = tmp_19;
|
|
3626
|
-
jsObject['isChatEnabled'] = isChatEnabled;
|
|
3627
|
-
return jsObject;
|
|
3628
|
-
}
|
|
3629
|
-
function validateTimeoutTime($this, timeoutTime) {
|
|
3630
|
-
if (!listOf([15, 30, 45]).s1(timeoutTime)) {
|
|
3631
|
-
throw IllegalStateException_init_$Create$("Time out time allowed: 20, 40, 60, but it's " + timeoutTime);
|
|
3632
|
-
}
|
|
3633
|
-
}
|
|
3634
|
-
function validatePlayers($this, players) {
|
|
3635
|
-
// Inline function 'kotlin.collections.map' call
|
|
3636
|
-
var this_0 = get_entries_0();
|
|
3637
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3638
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3639
|
-
var tmp0_iterator = this_0.j();
|
|
3640
|
-
while (tmp0_iterator.k()) {
|
|
3641
|
-
var item = tmp0_iterator.l();
|
|
3642
|
-
// Inline function 'GameHelperImpl.validatePlayers.<anonymous>' call
|
|
3643
|
-
var tmp$ret$0 = item.value;
|
|
3644
|
-
destination.e(tmp$ret$0);
|
|
3645
|
-
}
|
|
3646
|
-
if (!destination.s1(players)) {
|
|
3647
|
-
throw IllegalStateException_init_$Create$('Not valid players mode ' + players);
|
|
3648
|
-
}
|
|
3649
|
-
}
|
|
3650
|
-
function validatePoints($this, points) {
|
|
3651
|
-
// Inline function 'kotlin.collections.map' call
|
|
3652
|
-
var this_0 = get_entries_1();
|
|
3653
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3654
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3655
|
-
var tmp0_iterator = this_0.j();
|
|
3656
|
-
while (tmp0_iterator.k()) {
|
|
3657
|
-
var item = tmp0_iterator.l();
|
|
3658
|
-
// Inline function 'GameHelperImpl.validatePoints.<anonymous>' call
|
|
3659
|
-
var tmp$ret$0 = item.value;
|
|
3660
|
-
destination.e(tmp$ret$0);
|
|
3661
|
-
}
|
|
3662
|
-
if (!destination.s1(points)) {
|
|
3663
|
-
throw IllegalStateException_init_$Create$('Not valid points mode ' + points);
|
|
3664
|
-
}
|
|
3665
|
-
}
|
|
3666
|
-
function validateRulesSetType($this, rulesSetType) {
|
|
3667
|
-
// Inline function 'kotlin.collections.map' call
|
|
3668
|
-
var this_0 = get_entries();
|
|
3669
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3670
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3671
|
-
var tmp0_iterator = this_0.j();
|
|
3672
|
-
while (tmp0_iterator.k()) {
|
|
3673
|
-
var item = tmp0_iterator.l();
|
|
3674
|
-
// Inline function 'GameHelperImpl.validateRulesSetType.<anonymous>' call
|
|
3675
|
-
var tmp$ret$0 = item.m2_1;
|
|
3676
|
-
destination.e(tmp$ret$0);
|
|
3677
|
-
}
|
|
3678
|
-
if (!destination.s1(rulesSetType)) {
|
|
3679
|
-
throw IllegalStateException_init_$Create$('Not valid rulesSetType mode ' + rulesSetType);
|
|
3680
|
-
}
|
|
3681
|
-
}
|
|
3682
|
-
function validateLimit($this, limit) {
|
|
3683
|
-
if (limit < 20) {
|
|
3684
|
-
throw IllegalStateException_init_$Create$('Limit should be bigger then 20');
|
|
3685
|
-
}
|
|
3686
|
-
}
|
|
3687
|
-
function validateRules($this, rules) {
|
|
3688
|
-
if (rules != null && rules != undefined) {
|
|
3689
|
-
$this.mapRules(rules);
|
|
3690
|
-
}
|
|
3691
|
-
}
|
|
3692
|
-
function GameHelperImpl() {
|
|
3693
|
-
}
|
|
3694
|
-
protoOf(GameHelperImpl).filterLivePlayers = function (store, playerIds) {
|
|
3695
|
-
var state = store.state;
|
|
3696
|
-
var tmp;
|
|
3697
|
-
if (!state.b6n()) {
|
|
3698
|
-
tmp = true;
|
|
3699
|
-
} else {
|
|
3700
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3701
|
-
tmp = playerIds.length === 0;
|
|
3702
|
-
}
|
|
3703
|
-
if (tmp) {
|
|
3704
|
-
return playerIds;
|
|
3705
|
-
}
|
|
3706
|
-
var players = state.a6n().players;
|
|
3707
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3708
|
-
// Inline function 'kotlin.collections.map' call
|
|
3709
|
-
// Inline function 'kotlin.collections.filter' call
|
|
3710
|
-
// Inline function 'kotlin.collections.map' call
|
|
3711
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3712
|
-
var destination = ArrayList_init_$Create$_0(playerIds.length);
|
|
3713
|
-
var inductionVariable = 0;
|
|
3714
|
-
var last = playerIds.length;
|
|
3715
|
-
while (inductionVariable < last) {
|
|
3716
|
-
var item = playerIds[inductionVariable];
|
|
3717
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
3718
|
-
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
3719
|
-
var tmp$ret$1 = getPlayer(players, item);
|
|
3720
|
-
destination.e(tmp$ret$1);
|
|
3721
|
-
}
|
|
3722
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
3723
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
3724
|
-
var tmp0_iterator = destination.j();
|
|
3725
|
-
while (tmp0_iterator.k()) {
|
|
3726
|
-
var element = tmp0_iterator.l();
|
|
3727
|
-
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
3728
|
-
if (element.q6s_1.q69().h68_1.isLive) {
|
|
3729
|
-
destination_0.e(element);
|
|
3730
|
-
}
|
|
3731
|
-
}
|
|
3732
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3733
|
-
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_0, 10));
|
|
3734
|
-
var tmp0_iterator_0 = destination_0.j();
|
|
3735
|
-
while (tmp0_iterator_0.k()) {
|
|
3736
|
-
var item_0 = tmp0_iterator_0.l();
|
|
3737
|
-
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
3738
|
-
var tmp$ret$7 = item_0.playerId;
|
|
3739
|
-
destination_1.e(tmp$ret$7);
|
|
3740
|
-
}
|
|
3741
|
-
return copyToArray(destination_1);
|
|
3742
|
-
};
|
|
3743
|
-
protoOf(GameHelperImpl).filterLiveDuringGamePlayers = function (store, playerIds) {
|
|
3744
|
-
var state = store.state;
|
|
3745
|
-
var tmp;
|
|
3746
|
-
if (!state.b6n()) {
|
|
3747
|
-
tmp = true;
|
|
3748
|
-
} else {
|
|
3749
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3750
|
-
tmp = playerIds.length === 0;
|
|
3751
|
-
}
|
|
3752
|
-
if (tmp) {
|
|
3753
|
-
return playerIds;
|
|
3754
|
-
}
|
|
3755
|
-
var players = state.a6n().players;
|
|
3756
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3757
|
-
// Inline function 'kotlin.collections.map' call
|
|
3758
|
-
// Inline function 'kotlin.collections.filter' call
|
|
3759
|
-
// Inline function 'kotlin.collections.map' call
|
|
3760
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3761
|
-
var destination = ArrayList_init_$Create$_0(playerIds.length);
|
|
3762
|
-
var inductionVariable = 0;
|
|
3763
|
-
var last = playerIds.length;
|
|
3764
|
-
while (inductionVariable < last) {
|
|
3765
|
-
var item = playerIds[inductionVariable];
|
|
3766
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
3767
|
-
// Inline function 'GameHelperImpl.filterLiveDuringGamePlayers.<anonymous>' call
|
|
3768
|
-
var tmp$ret$1 = getPlayer(players, item);
|
|
3769
|
-
destination.e(tmp$ret$1);
|
|
3770
|
-
}
|
|
3771
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
3772
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
3773
|
-
var tmp0_iterator = destination.j();
|
|
3774
|
-
while (tmp0_iterator.k()) {
|
|
3775
|
-
var element = tmp0_iterator.l();
|
|
3776
|
-
// Inline function 'GameHelperImpl.filterLiveDuringGamePlayers.<anonymous>' call
|
|
3777
|
-
if (element.q6s_1.q69().s68(state.a6n().gameDuration)) {
|
|
3778
|
-
destination_0.e(element);
|
|
3779
|
-
}
|
|
3780
|
-
}
|
|
3781
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3782
|
-
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_0, 10));
|
|
3783
|
-
var tmp0_iterator_0 = destination_0.j();
|
|
3784
|
-
while (tmp0_iterator_0.k()) {
|
|
3785
|
-
var item_0 = tmp0_iterator_0.l();
|
|
3786
|
-
// Inline function 'GameHelperImpl.filterLiveDuringGamePlayers.<anonymous>' call
|
|
3787
|
-
var tmp$ret$7 = item_0.playerId;
|
|
3788
|
-
destination_1.e(tmp$ret$7);
|
|
3789
|
-
}
|
|
3790
|
-
return copyToArray(destination_1);
|
|
3791
|
-
};
|
|
3792
|
-
protoOf(GameHelperImpl).filterBotPlayers = function (store, playerIds) {
|
|
3793
|
-
var state = store.state;
|
|
3794
|
-
var tmp;
|
|
3795
|
-
if (!state.b6n()) {
|
|
3796
|
-
tmp = true;
|
|
3797
|
-
} else {
|
|
3798
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3799
|
-
tmp = playerIds.length === 0;
|
|
3800
|
-
}
|
|
3801
|
-
if (tmp) {
|
|
3802
|
-
return playerIds;
|
|
3803
|
-
}
|
|
3804
|
-
var players = state.a6n().players;
|
|
3805
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3806
|
-
// Inline function 'kotlin.collections.map' call
|
|
3807
|
-
// Inline function 'kotlin.collections.filter' call
|
|
3808
|
-
// Inline function 'kotlin.collections.map' call
|
|
3809
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3810
|
-
var destination = ArrayList_init_$Create$_0(playerIds.length);
|
|
3811
|
-
var inductionVariable = 0;
|
|
3812
|
-
var last = playerIds.length;
|
|
3813
|
-
while (inductionVariable < last) {
|
|
3814
|
-
var item = playerIds[inductionVariable];
|
|
3815
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
3816
|
-
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
3817
|
-
var tmp$ret$1 = getPlayer(players, item);
|
|
3818
|
-
destination.e(tmp$ret$1);
|
|
3819
|
-
}
|
|
3820
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
3821
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
3822
|
-
var tmp0_iterator = destination.j();
|
|
3823
|
-
while (tmp0_iterator.k()) {
|
|
3824
|
-
var element = tmp0_iterator.l();
|
|
3825
|
-
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
3826
|
-
if (element.p6s_1.isBot) {
|
|
3827
|
-
destination_0.e(element);
|
|
3828
|
-
}
|
|
3829
|
-
}
|
|
3830
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3831
|
-
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_0, 10));
|
|
3832
|
-
var tmp0_iterator_0 = destination_0.j();
|
|
3833
|
-
while (tmp0_iterator_0.k()) {
|
|
3834
|
-
var item_0 = tmp0_iterator_0.l();
|
|
3835
|
-
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
3836
|
-
var tmp$ret$7 = item_0.playerId;
|
|
3837
|
-
destination_1.e(tmp$ret$7);
|
|
3838
|
-
}
|
|
3839
|
-
return copyToArray(destination_1);
|
|
3840
|
-
};
|
|
3841
|
-
protoOf(GameHelperImpl).filterRealPlayers = function (store, playerIds) {
|
|
3842
|
-
var state = store.state;
|
|
3843
|
-
var tmp;
|
|
3844
|
-
if (!state.b6n()) {
|
|
3845
|
-
tmp = true;
|
|
3846
|
-
} else {
|
|
3847
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3848
|
-
tmp = playerIds.length === 0;
|
|
3849
|
-
}
|
|
3850
|
-
if (tmp) {
|
|
3851
|
-
return playerIds;
|
|
3852
|
-
}
|
|
3853
|
-
var players = state.a6n().players;
|
|
3854
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3855
|
-
// Inline function 'kotlin.collections.map' call
|
|
3856
|
-
// Inline function 'kotlin.collections.filter' call
|
|
3857
|
-
// Inline function 'kotlin.collections.map' call
|
|
3858
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3859
|
-
var destination = ArrayList_init_$Create$_0(playerIds.length);
|
|
3860
|
-
var inductionVariable = 0;
|
|
3861
|
-
var last = playerIds.length;
|
|
3862
|
-
while (inductionVariable < last) {
|
|
3863
|
-
var item = playerIds[inductionVariable];
|
|
3864
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
3865
|
-
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
3866
|
-
var tmp$ret$1 = getPlayer(players, item);
|
|
3867
|
-
destination.e(tmp$ret$1);
|
|
3868
|
-
}
|
|
3869
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
3870
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
3871
|
-
var tmp0_iterator = destination.j();
|
|
3872
|
-
while (tmp0_iterator.k()) {
|
|
3873
|
-
var element = tmp0_iterator.l();
|
|
3874
|
-
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
3875
|
-
if (!element.p6s_1.isBot) {
|
|
3876
|
-
destination_0.e(element);
|
|
3877
|
-
}
|
|
3878
|
-
}
|
|
3879
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3880
|
-
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_0, 10));
|
|
3881
|
-
var tmp0_iterator_0 = destination_0.j();
|
|
3882
|
-
while (tmp0_iterator_0.k()) {
|
|
3883
|
-
var item_0 = tmp0_iterator_0.l();
|
|
3884
|
-
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
3885
|
-
var tmp$ret$7 = item_0.playerId;
|
|
3886
|
-
destination_1.e(tmp$ret$7);
|
|
3887
|
-
}
|
|
3888
|
-
return copyToArray(destination_1);
|
|
3889
|
-
};
|
|
3890
|
-
protoOf(GameHelperImpl).getUserSocketId = function (store, playerId) {
|
|
3891
|
-
var state = store.state;
|
|
3892
|
-
if (!state.b6n()) {
|
|
3893
|
-
return null;
|
|
3894
|
-
}
|
|
3895
|
-
var tmp0_safe_receiver = getUserProfilePayloadOrNull(getPlayer(state.a6n().players, playerId).p6s_1);
|
|
3896
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.socketId;
|
|
3897
|
-
};
|
|
3898
|
-
protoOf(GameHelperImpl).getUserSocketIds = function (store) {
|
|
3899
|
-
var state = store.state;
|
|
3900
|
-
if (!state.b6n()) {
|
|
3901
|
-
return null;
|
|
3902
|
-
}
|
|
3903
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3904
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3905
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3906
|
-
var this_0 = state.a6n().players;
|
|
3907
|
-
var destination = ArrayList_init_$Create$();
|
|
3908
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
3909
|
-
var tmp0_iterator = this_0.j();
|
|
3910
|
-
while (tmp0_iterator.k()) {
|
|
3911
|
-
var element = tmp0_iterator.l();
|
|
3912
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3913
|
-
// Inline function 'GameHelperImpl.getUserSocketIds.<anonymous>' call
|
|
3914
|
-
var tmp0_safe_receiver = getUserProfilePayloadOrNull(element.p6s_1);
|
|
3915
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.socketId;
|
|
3916
|
-
if (tmp0_safe_receiver_0 == null)
|
|
3917
|
-
null;
|
|
3918
|
-
else {
|
|
3919
|
-
// Inline function 'kotlin.let' call
|
|
3920
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3921
|
-
destination.e(tmp0_safe_receiver_0);
|
|
3922
|
-
}
|
|
3923
|
-
}
|
|
3924
|
-
return copyToArray(destination);
|
|
3925
|
-
};
|
|
3926
|
-
protoOf(GameHelperImpl).createConfig = function (points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate) {
|
|
3927
|
-
var options = Companion_instance_3.getServerOptions(isEnableChat, isBotsEnabled, true);
|
|
3928
|
-
var playersMode = this.mapPlayers(players);
|
|
3929
|
-
var pointsMode = this.mapPoints(points);
|
|
3930
|
-
var tmp;
|
|
3931
|
-
if (rules == null || rules == undefined) {
|
|
3932
|
-
tmp = this.getRulesByType(rulesSetType);
|
|
3933
|
-
} else {
|
|
3934
|
-
tmp = this.mapRules(rules);
|
|
3935
|
-
}
|
|
3936
|
-
var internalRules = tmp;
|
|
3937
|
-
return new Config(internalRules, rulesSetType, options, playersMode, pointsMode, timeoutTimeMillis, isPrivate);
|
|
3938
|
-
};
|
|
3939
|
-
protoOf(GameHelperImpl).mapToRoomConfig = function (config) {
|
|
3940
|
-
return mapToRoom(config);
|
|
3941
|
-
};
|
|
3942
|
-
protoOf(GameHelperImpl).mapPoints = function (points) {
|
|
3943
|
-
var tmp;
|
|
3944
|
-
switch (points) {
|
|
3945
|
-
case 301:
|
|
3946
|
-
tmp = PointsMode_SMALL_getInstance();
|
|
3947
|
-
break;
|
|
3948
|
-
case 501:
|
|
3949
|
-
tmp = PointsMode_MEDIUM_getInstance();
|
|
3950
|
-
break;
|
|
3951
|
-
case 1001:
|
|
3952
|
-
tmp = PointsMode_BIG_getInstance();
|
|
3953
|
-
break;
|
|
3954
|
-
case 10:
|
|
3955
|
-
tmp = PointsMode_TEST_getInstance();
|
|
3956
|
-
break;
|
|
3957
|
-
default:
|
|
3958
|
-
throw IllegalStateException_init_$Create$("mapPoints: can't support this type " + points);
|
|
3959
|
-
}
|
|
3960
|
-
return tmp;
|
|
3961
|
-
};
|
|
3962
|
-
protoOf(GameHelperImpl).mapPlayers = function (players) {
|
|
3963
|
-
var tmp;
|
|
3964
|
-
switch (players) {
|
|
3965
|
-
case 2:
|
|
3966
|
-
tmp = PlayersMode_TWO_PLAYERS_getInstance();
|
|
3967
|
-
break;
|
|
3968
|
-
case 3:
|
|
3969
|
-
tmp = PlayersMode_THREE_PLAYERS_getInstance();
|
|
3970
|
-
break;
|
|
3971
|
-
case 4:
|
|
3972
|
-
tmp = PlayersMode_FOUR_PLAYERS_getInstance();
|
|
3973
|
-
break;
|
|
3974
|
-
case 5:
|
|
3975
|
-
tmp = PlayersMode_FOUR_PLAYERS_BY_TEAM_getInstance();
|
|
3976
|
-
break;
|
|
3977
|
-
default:
|
|
3978
|
-
throw IllegalStateException_init_$Create$("mapPoints: can't support this type " + players);
|
|
3979
|
-
}
|
|
3980
|
-
return tmp;
|
|
3981
|
-
};
|
|
3982
|
-
protoOf(GameHelperImpl).mapRules = function (rules) {
|
|
3983
|
-
if (rules instanceof Rules) {
|
|
3984
|
-
return rules instanceof Rules ? rules : THROW_CCE();
|
|
3985
|
-
}
|
|
3986
|
-
var map = mapOfObject(rules);
|
|
3987
|
-
var tmp = map.g2('needToPutHigherTrump');
|
|
3988
|
-
var tmp0_elvis_lhs = (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : null;
|
|
3989
|
-
var tmp31_needToPutHigherTrump = tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
3990
|
-
var tmp_0 = map.g2('playerWhoChooseSuitGoFirst');
|
|
3991
|
-
var tmp1_elvis_lhs = (!(tmp_0 == null) ? typeof tmp_0 === 'boolean' : false) ? tmp_0 : null;
|
|
3992
|
-
var tmp32_playerWhoChooseSuitGoFirst = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
3993
|
-
var tmp_1 = map.g2('winnerShuffleCards');
|
|
3994
|
-
var tmp2_elvis_lhs = (!(tmp_1 == null) ? typeof tmp_1 === 'boolean' : false) ? tmp_1 : null;
|
|
3995
|
-
var tmp33_winnerShuffleCards = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
3996
|
-
var tmp_2 = map.g2('playWithoutLiabilities');
|
|
3997
|
-
var tmp3_elvis_lhs = (!(tmp_2 == null) ? typeof tmp_2 === 'boolean' : false) ? tmp_2 : null;
|
|
3998
|
-
var tmp34_playWithoutLiabilities = tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs;
|
|
3999
|
-
var tmp_3 = map.g2('trumpCardGoToPlayerWhoShuffleCards');
|
|
4000
|
-
var tmp4_elvis_lhs = (!(tmp_3 == null) ? typeof tmp_3 === 'boolean' : false) ? tmp_3 : null;
|
|
4001
|
-
var tmp35_trumpCardGoToPlayerWhoShuffleCards = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
4002
|
-
var tmp_4 = map.g2('dealerCounterClockwise');
|
|
4003
|
-
var tmp5_elvis_lhs = (!(tmp_4 == null) ? typeof tmp_4 === 'boolean' : false) ? tmp_4 : null;
|
|
4004
|
-
var tmp36_dealerCounterClockwise = tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs;
|
|
4005
|
-
var tmp_5 = map.g2('dealerInitialCardsCount');
|
|
4006
|
-
var tmp6_elvis_lhs = (!(tmp_5 == null) ? typeof tmp_5 === 'number' : false) ? tmp_5 : null;
|
|
4007
|
-
var tmp37_dealerInitialCardsCount = tmp6_elvis_lhs == null ? 6 : tmp6_elvis_lhs;
|
|
4008
|
-
var tmp_6 = map.g2('dealerFinalCardsCount');
|
|
4009
|
-
var tmp7_elvis_lhs = (!(tmp_6 == null) ? typeof tmp_6 === 'number' : false) ? tmp_6 : null;
|
|
4010
|
-
var tmp38_dealerFinalCardsCount = tmp7_elvis_lhs == null ? 9 : tmp7_elvis_lhs;
|
|
4011
|
-
var tmp_7 = map.g2('contractTypes');
|
|
4012
|
-
var tmp8_safe_receiver = (!(tmp_7 == null) ? isArray(tmp_7) : false) ? tmp_7 : null;
|
|
4013
|
-
var tmp_8;
|
|
4014
|
-
if (tmp8_safe_receiver == null) {
|
|
4015
|
-
tmp_8 = null;
|
|
4016
|
-
} else {
|
|
4017
|
-
// Inline function 'kotlin.collections.map' call
|
|
4018
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
4019
|
-
var destination = ArrayList_init_$Create$_0(tmp8_safe_receiver.length);
|
|
4020
|
-
var inductionVariable = 0;
|
|
4021
|
-
var last = tmp8_safe_receiver.length;
|
|
4022
|
-
while (inductionVariable < last) {
|
|
4023
|
-
var item = tmp8_safe_receiver[inductionVariable];
|
|
4024
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
4025
|
-
// Inline function 'GameHelperImpl.mapRules.<anonymous>' call
|
|
4026
|
-
var tmp$ret$0 = toRoundContractType(item);
|
|
4027
|
-
destination.e(tmp$ret$0);
|
|
4028
|
-
}
|
|
4029
|
-
tmp_8 = destination;
|
|
4030
|
-
}
|
|
4031
|
-
var tmp9_safe_receiver = tmp_8;
|
|
4032
|
-
var tmp_9;
|
|
4033
|
-
if (tmp9_safe_receiver == null) {
|
|
4034
|
-
tmp_9 = null;
|
|
4035
|
-
} else {
|
|
4036
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4037
|
-
tmp_9 = copyToArray(tmp9_safe_receiver);
|
|
4038
|
-
}
|
|
4039
|
-
var tmp10_elvis_lhs = tmp_9;
|
|
4040
|
-
var tmp_10;
|
|
4041
|
-
if (tmp10_elvis_lhs == null) {
|
|
4042
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4043
|
-
var this_0 = Companion_getInstance_0().debertzContractTypes;
|
|
4044
|
-
tmp_10 = copyToArray(this_0);
|
|
4045
|
-
} else {
|
|
4046
|
-
tmp_10 = tmp10_elvis_lhs;
|
|
4047
|
-
}
|
|
4048
|
-
var tmp39_contractTypes = tmp_10;
|
|
4049
|
-
var tmp_11 = map.g2('bidTypes');
|
|
4050
|
-
var tmp11_safe_receiver = (!(tmp_11 == null) ? isArray(tmp_11) : false) ? tmp_11 : null;
|
|
4051
|
-
var tmp_12;
|
|
4052
|
-
if (tmp11_safe_receiver == null) {
|
|
4053
|
-
tmp_12 = null;
|
|
4054
|
-
} else {
|
|
4055
|
-
// Inline function 'kotlin.collections.map' call
|
|
4056
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
4057
|
-
var destination_0 = ArrayList_init_$Create$_0(tmp11_safe_receiver.length);
|
|
4058
|
-
var inductionVariable_0 = 0;
|
|
4059
|
-
var last_0 = tmp11_safe_receiver.length;
|
|
4060
|
-
while (inductionVariable_0 < last_0) {
|
|
4061
|
-
var item_0 = tmp11_safe_receiver[inductionVariable_0];
|
|
4062
|
-
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
4063
|
-
// Inline function 'GameHelperImpl.mapRules.<anonymous>' call
|
|
4064
|
-
var tmp$ret$5 = toBidType(item_0);
|
|
4065
|
-
destination_0.e(tmp$ret$5);
|
|
4066
|
-
}
|
|
4067
|
-
tmp_12 = destination_0;
|
|
4068
|
-
}
|
|
4069
|
-
var tmp12_safe_receiver = tmp_12;
|
|
4070
|
-
var tmp_13;
|
|
4071
|
-
if (tmp12_safe_receiver == null) {
|
|
4072
|
-
tmp_13 = null;
|
|
4073
|
-
} else {
|
|
4074
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4075
|
-
tmp_13 = copyToArray(tmp12_safe_receiver);
|
|
4076
|
-
}
|
|
4077
|
-
var tmp13_elvis_lhs = tmp_13;
|
|
4078
|
-
var tmp_14;
|
|
4079
|
-
if (tmp13_elvis_lhs == null) {
|
|
4080
|
-
// Inline function 'kotlin.emptyArray' call
|
|
4081
|
-
tmp_14 = [];
|
|
4082
|
-
} else {
|
|
4083
|
-
tmp_14 = tmp13_elvis_lhs;
|
|
4084
|
-
}
|
|
4085
|
-
var tmp40_bidTypes = tmp_14;
|
|
4086
|
-
var tmp_15 = map.g2('combinationsWithFirstCard');
|
|
4087
|
-
var tmp14_safe_receiver = (!(tmp_15 == null) ? isArray(tmp_15) : false) ? tmp_15 : null;
|
|
4088
|
-
var tmp_16;
|
|
4089
|
-
if (tmp14_safe_receiver == null) {
|
|
4090
|
-
tmp_16 = null;
|
|
4091
|
-
} else {
|
|
4092
|
-
// Inline function 'kotlin.collections.map' call
|
|
4093
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
4094
|
-
var destination_1 = ArrayList_init_$Create$_0(tmp14_safe_receiver.length);
|
|
4095
|
-
var inductionVariable_1 = 0;
|
|
4096
|
-
var last_1 = tmp14_safe_receiver.length;
|
|
4097
|
-
while (inductionVariable_1 < last_1) {
|
|
4098
|
-
var item_1 = tmp14_safe_receiver[inductionVariable_1];
|
|
4099
|
-
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
4100
|
-
// Inline function 'GameHelperImpl.mapRules.<anonymous>' call
|
|
4101
|
-
var tmp$ret$10 = mapToCombinationType(item_1);
|
|
4102
|
-
destination_1.e(tmp$ret$10);
|
|
4103
|
-
}
|
|
4104
|
-
tmp_16 = destination_1;
|
|
4105
|
-
}
|
|
4106
|
-
var tmp15_safe_receiver = tmp_16;
|
|
4107
|
-
var tmp_17;
|
|
4108
|
-
if (tmp15_safe_receiver == null) {
|
|
4109
|
-
tmp_17 = null;
|
|
4110
|
-
} else {
|
|
4111
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4112
|
-
tmp_17 = copyToArray(tmp15_safe_receiver);
|
|
4113
|
-
}
|
|
4114
|
-
var tmp16_elvis_lhs = tmp_17;
|
|
4115
|
-
var tmp_18;
|
|
4116
|
-
if (tmp16_elvis_lhs == null) {
|
|
4117
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4118
|
-
var this_1 = Companion_getInstance_1().debertzWithFirstCardCombinations;
|
|
4119
|
-
tmp_18 = copyToArray(this_1);
|
|
4120
|
-
} else {
|
|
4121
|
-
tmp_18 = tmp16_elvis_lhs;
|
|
4122
|
-
}
|
|
4123
|
-
var tmp41_combinationsWithFirstCard = tmp_18;
|
|
4124
|
-
var tmp_19 = map.g2('protectBella');
|
|
4125
|
-
var tmp17_elvis_lhs = (!(tmp_19 == null) ? typeof tmp_19 === 'boolean' : false) ? tmp_19 : null;
|
|
4126
|
-
var tmp42_protectBella = tmp17_elvis_lhs == null ? false : tmp17_elvis_lhs;
|
|
4127
|
-
var tmp_20 = map.g2('oneTryToProtectBella');
|
|
4128
|
-
var tmp18_elvis_lhs = (!(tmp_20 == null) ? typeof tmp_20 === 'boolean' : false) ? tmp_20 : null;
|
|
4129
|
-
var tmp43_oneTryToProtectBella = tmp18_elvis_lhs == null ? false : tmp18_elvis_lhs;
|
|
4130
|
-
var tmp_21 = map.g2('enableFourSevensCombination');
|
|
4131
|
-
var tmp19_elvis_lhs = (!(tmp_21 == null) ? typeof tmp_21 === 'boolean' : false) ? tmp_21 : null;
|
|
4132
|
-
var tmp44_enableFourSevensCombination = tmp19_elvis_lhs == null ? false : tmp19_elvis_lhs;
|
|
4133
|
-
var tmp_22 = map.g2('enableTrumpSevenCombination');
|
|
4134
|
-
var tmp20_elvis_lhs = (!(tmp_22 == null) ? typeof tmp_22 === 'boolean' : false) ? tmp_22 : null;
|
|
4135
|
-
var tmp45_enableTrumpSevenCombination = tmp20_elvis_lhs == null ? false : tmp20_elvis_lhs;
|
|
4136
|
-
var tmp_23 = map.g2('enableTrumpSevenCombinationAfterDistribution');
|
|
4137
|
-
var tmp21_elvis_lhs = (!(tmp_23 == null) ? typeof tmp_23 === 'boolean' : false) ? tmp_23 : null;
|
|
4138
|
-
var tmp46_enableTrumpSevenCombinationAfterDistribution = tmp21_elvis_lhs == null ? false : tmp21_elvis_lhs;
|
|
4139
|
-
var tmp_24 = map.g2('checkTrumpCombination');
|
|
4140
|
-
var tmp22_elvis_lhs = (!(tmp_24 == null) ? typeof tmp_24 === 'boolean' : false) ? tmp_24 : null;
|
|
4141
|
-
var tmp47_checkTrumpCombination = tmp22_elvis_lhs == null ? false : tmp22_elvis_lhs;
|
|
4142
|
-
var tmp_25 = map.g2('checkOnlyTrumpDebertz');
|
|
4143
|
-
var tmp23_elvis_lhs = (!(tmp_25 == null) ? typeof tmp_25 === 'boolean' : false) ? tmp_25 : null;
|
|
4144
|
-
var tmp48_checkOnlyTrumpDebertz = tmp23_elvis_lhs == null ? false : tmp23_elvis_lhs;
|
|
4145
|
-
var tmp_26 = map.g2('distributePoints');
|
|
4146
|
-
var tmp24_elvis_lhs = (!(tmp_26 == null) ? typeof tmp_26 === 'boolean' : false) ? tmp_26 : null;
|
|
4147
|
-
var tmp49_distributePoints = tmp24_elvis_lhs == null ? false : tmp24_elvis_lhs;
|
|
4148
|
-
var tmp_27 = map.g2('pointsDistributeMode');
|
|
4149
|
-
var tmp25_safe_receiver = (!(tmp_27 == null) ? typeof tmp_27 === 'string' : false) ? tmp_27 : null;
|
|
4150
|
-
var tmp26_elvis_lhs = tmp25_safe_receiver == null ? null : toPointsDistributeMode(tmp25_safe_receiver);
|
|
4151
|
-
var tmp_28;
|
|
4152
|
-
if (tmp26_elvis_lhs == null) {
|
|
4153
|
-
var tmp_29;
|
|
4154
|
-
var tmp_30 = map.g2('distributePoints');
|
|
4155
|
-
if (((!(tmp_30 == null) ? typeof tmp_30 === 'boolean' : false) ? tmp_30 : null) === true) {
|
|
4156
|
-
tmp_29 = PointsDistributeMode_ALL_getInstance();
|
|
4157
|
-
} else {
|
|
4158
|
-
tmp_29 = PointsDistributeMode_HIGHEST_PLAYER_getInstance();
|
|
4159
|
-
}
|
|
4160
|
-
tmp_28 = tmp_29;
|
|
4161
|
-
} else {
|
|
4162
|
-
tmp_28 = tmp26_elvis_lhs;
|
|
4163
|
-
}
|
|
4164
|
-
var tmp50_pointsDistributeMode = tmp_28;
|
|
4165
|
-
var tmp_31 = map.g2('enableFineIfNoBribes');
|
|
4166
|
-
var tmp27_elvis_lhs = (!(tmp_31 == null) ? typeof tmp_31 === 'boolean' : false) ? tmp_31 : null;
|
|
4167
|
-
var tmp51_enableFineIfNoBribes = tmp27_elvis_lhs == null ? false : tmp27_elvis_lhs;
|
|
4168
|
-
var tmp_32 = map.g2('fineIfNoBribes');
|
|
4169
|
-
var tmp28_elvis_lhs = (!(tmp_32 == null) ? typeof tmp_32 === 'number' : false) ? tmp_32 : null;
|
|
4170
|
-
var tmp52_fineIfNoBribes = tmp28_elvis_lhs == null ? 50 : tmp28_elvis_lhs;
|
|
4171
|
-
var tmp_33 = map.g2('enableFineAfterThirdByte');
|
|
4172
|
-
var tmp29_elvis_lhs = (!(tmp_33 == null) ? typeof tmp_33 === 'boolean' : false) ? tmp_33 : null;
|
|
4173
|
-
var tmp53_enableFineAfterThirdFailedContract = tmp29_elvis_lhs == null ? false : tmp29_elvis_lhs;
|
|
4174
|
-
var tmp_34 = map.g2('fineAfterThirdFailedContract');
|
|
4175
|
-
var tmp30_elvis_lhs = (!(tmp_34 == null) ? typeof tmp_34 === 'number' : false) ? tmp_34 : null;
|
|
4176
|
-
var tmp54_fineAfterThirdFailedContract = tmp30_elvis_lhs == null ? 100 : tmp30_elvis_lhs;
|
|
4177
|
-
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);
|
|
4178
|
-
};
|
|
4179
|
-
protoOf(GameHelperImpl).prepareConfigObjectWithPagination = function (config) {
|
|
4180
|
-
var map = mapOfObject(config);
|
|
4181
|
-
var tmp = map.g2('limit');
|
|
4182
|
-
var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
|
|
4183
|
-
var tmp_0;
|
|
4184
|
-
if (tmp0_safe_receiver == null) {
|
|
4185
|
-
tmp_0 = null;
|
|
4186
|
-
} else {
|
|
4187
|
-
// Inline function 'kotlin.also' call
|
|
4188
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
4189
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectWithPagination.<anonymous>' call
|
|
4190
|
-
validateLimit(this, tmp0_safe_receiver);
|
|
4191
|
-
tmp_0 = tmp0_safe_receiver;
|
|
4192
|
-
}
|
|
4193
|
-
var limit = tmp_0;
|
|
4194
|
-
var jsObject = prepareConfigObjectInternal(this, map);
|
|
4195
|
-
jsObject['limit'] = limit == null ? 20 : limit;
|
|
4196
|
-
return jsObject;
|
|
4197
|
-
};
|
|
4198
|
-
protoOf(GameHelperImpl).prepareConfigObject = function (config) {
|
|
4199
|
-
var map = mapOfObject(config);
|
|
4200
|
-
return prepareConfigObjectInternal(this, map);
|
|
4201
|
-
};
|
|
4202
|
-
protoOf(GameHelperImpl).isValidConfigObject = function (config) {
|
|
4203
|
-
var map = mapOfObject(config);
|
|
4204
|
-
var rules = map.g2('rules');
|
|
4205
|
-
var tmp = getValue(map, 'players');
|
|
4206
|
-
var tmp_0 = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE();
|
|
4207
|
-
var tmp_1 = getValue(map, 'points');
|
|
4208
|
-
var tmp_2 = (!(tmp_1 == null) ? typeof tmp_1 === 'number' : false) ? tmp_1 : THROW_CCE();
|
|
4209
|
-
var tmp_3 = getValue(map, 'timeoutTime');
|
|
4210
|
-
var tmp_4 = (!(tmp_3 == null) ? typeof tmp_3 === 'number' : false) ? tmp_3 : THROW_CCE();
|
|
4211
|
-
var tmp_5 = getValue(map, 'rulesPreset');
|
|
4212
|
-
var tmp_6 = (!(tmp_5 == null) ? typeof tmp_5 === 'string' : false) ? tmp_5 : THROW_CCE();
|
|
4213
|
-
var tmp_7;
|
|
4214
|
-
if (rules != null && rules != undefined) {
|
|
4215
|
-
tmp_7 = this.mapRules(rules);
|
|
4216
|
-
} else {
|
|
4217
|
-
tmp_7 = null;
|
|
4218
|
-
}
|
|
4219
|
-
return this.isValidConfig(tmp_0, tmp_2, tmp_4, tmp_6, tmp_7);
|
|
4220
|
-
};
|
|
4221
|
-
protoOf(GameHelperImpl).isValidConfig = function (players, points, timeoutTime, rulesPreset, rules) {
|
|
4222
|
-
validatePoints(this, points);
|
|
4223
|
-
validatePlayers(this, players);
|
|
4224
|
-
validateTimeoutTime(this, timeoutTime);
|
|
4225
|
-
validateRulesSetType(this, rulesPreset);
|
|
4226
|
-
validateRules(this, rules);
|
|
4227
|
-
return true;
|
|
4228
|
-
};
|
|
4229
|
-
protoOf(GameHelperImpl).getRulesByType = function (rulesSetType) {
|
|
4230
|
-
var tmp;
|
|
4231
|
-
switch (rulesSetType.n2_1) {
|
|
4232
|
-
case 0:
|
|
4233
|
-
tmp = Companion_instance_4.belot();
|
|
4234
|
-
break;
|
|
4235
|
-
case 1:
|
|
4236
|
-
tmp = Companion_instance_4.klabor();
|
|
4237
|
-
break;
|
|
4238
|
-
case 2:
|
|
4239
|
-
tmp = Companion_instance_4.debertzCommon();
|
|
4240
|
-
break;
|
|
4241
|
-
case 3:
|
|
4242
|
-
tmp = Companion_instance_4.kharkiv();
|
|
4243
|
-
break;
|
|
4244
|
-
case 4:
|
|
4245
|
-
tmp = Companion_instance_4.saltivka();
|
|
4246
|
-
break;
|
|
4247
|
-
case 5:
|
|
4248
|
-
throw IllegalStateException_init_$Create$("You can't use default custom rule, you need to provide own one");
|
|
4249
|
-
default:
|
|
4250
|
-
noWhenBranchMatchedException();
|
|
4251
|
-
break;
|
|
4252
|
-
}
|
|
4253
|
-
return tmp;
|
|
4254
|
-
};
|
|
4255
|
-
protoOf(GameHelperImpl).getRulesByString = function (name) {
|
|
4256
|
-
var tmp;
|
|
4257
|
-
switch (name) {
|
|
4258
|
-
case 'belot':
|
|
4259
|
-
tmp = Companion_instance_4.belot();
|
|
4260
|
-
break;
|
|
4261
|
-
case 'klabor':
|
|
4262
|
-
tmp = Companion_instance_4.klabor();
|
|
4263
|
-
break;
|
|
4264
|
-
case 'debertzCommon':
|
|
4265
|
-
tmp = Companion_instance_4.debertzCommon();
|
|
4266
|
-
break;
|
|
4267
|
-
case 'debertzKharkiv':
|
|
4268
|
-
tmp = Companion_instance_4.kharkiv();
|
|
4269
|
-
break;
|
|
4270
|
-
case 'custom':
|
|
4271
|
-
throw IllegalStateException_init_$Create$("You can't use default custom rule, you need to provide own one");
|
|
4272
|
-
default:
|
|
4273
|
-
throw IllegalStateException_init_$Create$("Can't support this " + name);
|
|
4274
|
-
}
|
|
4275
|
-
return tmp;
|
|
4276
|
-
};
|
|
4277
|
-
protoOf(GameHelperImpl).mapRulesSetType = function (name) {
|
|
4278
|
-
return valueOf(name);
|
|
4279
|
-
};
|
|
4280
|
-
function GameResources() {
|
|
4281
|
-
}
|
|
4282
|
-
var AvatarSet_ORIGIN_instance;
|
|
4283
|
-
var AvatarSet_NOSTALGIA_instance;
|
|
4284
|
-
function values() {
|
|
4285
|
-
return [AvatarSet_ORIGIN_getInstance(), AvatarSet_NOSTALGIA_getInstance()];
|
|
4286
|
-
}
|
|
4287
|
-
var AvatarSet_entriesInitialized;
|
|
4288
|
-
function AvatarSet_initEntries() {
|
|
4289
|
-
if (AvatarSet_entriesInitialized)
|
|
4290
|
-
return Unit_instance;
|
|
4291
|
-
AvatarSet_entriesInitialized = true;
|
|
4292
|
-
AvatarSet_ORIGIN_instance = new AvatarSet('ORIGIN', 0);
|
|
4293
|
-
AvatarSet_NOSTALGIA_instance = new AvatarSet('NOSTALGIA', 1);
|
|
4294
|
-
}
|
|
4295
|
-
function getRandomAvatarData($this, existingNicknames) {
|
|
4296
|
-
var tries = 0;
|
|
4297
|
-
var data = getRandomAvatarData_0($this);
|
|
4298
|
-
$l$loop: while (tries < 5) {
|
|
4299
|
-
var nickname = getNicknameByIndex($this, data);
|
|
4300
|
-
var tmp$ret$1;
|
|
4301
|
-
$l$block: {
|
|
4302
|
-
// Inline function 'kotlin.collections.none' call
|
|
4303
|
-
var inductionVariable = 0;
|
|
4304
|
-
var last = existingNicknames.length;
|
|
4305
|
-
while (inductionVariable < last) {
|
|
4306
|
-
var element = existingNicknames[inductionVariable];
|
|
4307
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
4308
|
-
// Inline function 'GameResourcesImpl.getRandomAvatarData.<anonymous>' call
|
|
4309
|
-
if (element === nickname) {
|
|
4310
|
-
tmp$ret$1 = false;
|
|
4311
|
-
break $l$block;
|
|
4312
|
-
}
|
|
4313
|
-
}
|
|
4314
|
-
tmp$ret$1 = true;
|
|
4315
|
-
}
|
|
4316
|
-
if (tmp$ret$1) {
|
|
4317
|
-
break $l$loop;
|
|
4318
|
-
}
|
|
4319
|
-
data = getRandomAvatarData_0($this);
|
|
4320
|
-
tries = tries + 1 | 0;
|
|
4321
|
-
}
|
|
4322
|
-
return data;
|
|
4323
|
-
}
|
|
4324
|
-
function getRandomAvatarData_0($this) {
|
|
4325
|
-
var avatarSetNumber = Default_getInstance().og(values().length);
|
|
4326
|
-
var avatarSet = values()[avatarSetNumber];
|
|
4327
|
-
return new AvatarData(Default_getInstance().og(avatarSet.z9g()), avatarSet);
|
|
4328
|
-
}
|
|
4329
|
-
function getAvatarUrlByIndex($this, data) {
|
|
4330
|
-
return mapToPattern($this, data);
|
|
4331
|
-
}
|
|
4332
|
-
function getNicknameByIndex($this, data) {
|
|
4333
|
-
return data.b9h_1.c9h(data.a9h_1);
|
|
4334
|
-
}
|
|
4335
|
-
function mapToPattern($this, data) {
|
|
4336
|
-
return 'debertz://raspberry.games/' + data.b9h_1.n2_1 + '/' + data.a9h_1;
|
|
4337
|
-
}
|
|
4338
|
-
function Companion_2() {
|
|
4339
|
-
Companion_instance_12 = this;
|
|
4340
|
-
this.d9h_1 = 'debertz://raspberry.games';
|
|
4341
|
-
var tmp = this;
|
|
4342
|
-
// Inline function 'kotlin.arrayOf' call
|
|
4343
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
4344
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
4345
|
-
tmp.e9h_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
4346
|
-
var tmp_0 = this;
|
|
4347
|
-
// Inline function 'kotlin.arrayOf' call
|
|
4348
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
4349
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
4350
|
-
tmp_0.f9h_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'];
|
|
4351
|
-
var tmp_1 = this;
|
|
4352
|
-
// Inline function 'kotlin.arrayOf' call
|
|
4353
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
4354
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
4355
|
-
tmp_1.g9h_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
4356
|
-
var tmp_2 = this;
|
|
4357
|
-
// Inline function 'kotlin.arrayOf' call
|
|
4358
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
4359
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
4360
|
-
tmp_2.h9h_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'];
|
|
4361
|
-
}
|
|
4362
|
-
var Companion_instance_12;
|
|
4363
|
-
function Companion_getInstance_5() {
|
|
4364
|
-
if (Companion_instance_12 == null)
|
|
4365
|
-
new Companion_2();
|
|
4366
|
-
return Companion_instance_12;
|
|
4367
|
-
}
|
|
4368
|
-
function AvatarSet(name, ordinal) {
|
|
4369
|
-
Enum.call(this, name, ordinal);
|
|
4370
|
-
}
|
|
4371
|
-
protoOf(AvatarSet).z9g = function () {
|
|
4372
|
-
var tmp;
|
|
4373
|
-
switch (this.n2_1) {
|
|
4374
|
-
case 0:
|
|
4375
|
-
tmp = Companion_getInstance_5().f9h_1.length;
|
|
4376
|
-
break;
|
|
4377
|
-
case 1:
|
|
4378
|
-
tmp = Companion_getInstance_5().h9h_1.length;
|
|
4379
|
-
break;
|
|
4380
|
-
default:
|
|
4381
|
-
noWhenBranchMatchedException();
|
|
4382
|
-
break;
|
|
4383
|
-
}
|
|
4384
|
-
return tmp;
|
|
4385
|
-
};
|
|
4386
|
-
protoOf(AvatarSet).c9h = function (index) {
|
|
4387
|
-
var tmp;
|
|
4388
|
-
switch (this.n2_1) {
|
|
4389
|
-
case 0:
|
|
4390
|
-
tmp = Companion_getInstance_5().f9h_1[index];
|
|
4391
|
-
break;
|
|
4392
|
-
case 1:
|
|
4393
|
-
tmp = Companion_getInstance_5().h9h_1[index];
|
|
4394
|
-
break;
|
|
4395
|
-
default:
|
|
4396
|
-
noWhenBranchMatchedException();
|
|
4397
|
-
break;
|
|
4398
|
-
}
|
|
4399
|
-
return tmp;
|
|
4400
|
-
};
|
|
4401
|
-
function AvatarData(index, avatarSet) {
|
|
4402
|
-
this.a9h_1 = index;
|
|
4403
|
-
this.b9h_1 = avatarSet;
|
|
4404
|
-
}
|
|
4405
|
-
function AvatarSet_ORIGIN_getInstance() {
|
|
4406
|
-
AvatarSet_initEntries();
|
|
4407
|
-
return AvatarSet_ORIGIN_instance;
|
|
4408
|
-
}
|
|
4409
|
-
function AvatarSet_NOSTALGIA_getInstance() {
|
|
4410
|
-
AvatarSet_initEntries();
|
|
4411
|
-
return AvatarSet_NOSTALGIA_instance;
|
|
4412
|
-
}
|
|
4413
|
-
function GameResourcesImpl() {
|
|
4414
|
-
Companion_getInstance_5();
|
|
4415
|
-
}
|
|
4416
|
-
protoOf(GameResourcesImpl).w9g = function (playerId, existingNicknames) {
|
|
4417
|
-
var data = getRandomAvatarData(this, existingNicknames);
|
|
4418
|
-
return new GameUserInfo(playerId, getNicknameByIndex(this, data), getAvatarUrlByIndex(this, data), true);
|
|
4419
|
-
};
|
|
4420
|
-
protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
|
|
4421
|
-
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4422
|
-
var users = ArrayList_init_$Create$();
|
|
4423
|
-
var inductionVariable = 0;
|
|
4424
|
-
var last = playerIds.length;
|
|
4425
|
-
while (inductionVariable < last) {
|
|
4426
|
-
var playerId = playerIds[inductionVariable];
|
|
4427
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
4428
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4429
|
-
// Inline function 'kotlin.collections.map' call
|
|
4430
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
4431
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(users, 10));
|
|
4432
|
-
var tmp0_iterator = users.j();
|
|
4433
|
-
while (tmp0_iterator.k()) {
|
|
4434
|
-
var item = tmp0_iterator.l();
|
|
4435
|
-
// Inline function 'GameResourcesImpl.createBotUsers.<anonymous>' call
|
|
4436
|
-
var tmp$ret$1 = item.name;
|
|
4437
|
-
destination.e(tmp$ret$1);
|
|
4438
|
-
}
|
|
4439
|
-
var tmp$ret$4 = copyToArray(destination);
|
|
4440
|
-
var user = this.createBotUser(playerId, tmp$ret$4);
|
|
4441
|
-
users.e(user);
|
|
4442
|
-
}
|
|
4443
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4444
|
-
return copyToArray(users);
|
|
4445
|
-
};
|
|
4446
3391
|
function GameEngineController() {
|
|
4447
3392
|
}
|
|
4448
3393
|
function createGameServerController(loggerCallback, randomOrgConfig) {
|
|
@@ -4451,30 +3396,30 @@
|
|
|
4451
3396
|
}
|
|
4452
3397
|
function _get_controllerLogger__nbd727($this) {
|
|
4453
3398
|
// Inline function 'kotlin.getValue' call
|
|
4454
|
-
var this_0 = $this.
|
|
3399
|
+
var this_0 = $this.b9i_1;
|
|
4455
3400
|
controllerLogger$factory();
|
|
4456
3401
|
return this_0.u();
|
|
4457
3402
|
}
|
|
4458
3403
|
function _get_di__ndbzja($this) {
|
|
4459
3404
|
// Inline function 'kotlin.getValue' call
|
|
4460
|
-
var this_0 = $this.
|
|
3405
|
+
var this_0 = $this.c9i_1;
|
|
4461
3406
|
di$factory();
|
|
4462
3407
|
return this_0.u();
|
|
4463
3408
|
}
|
|
4464
3409
|
function createDI($this, combinedLogger, coreConfig, serverConfig, logicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares, externalModule) {
|
|
4465
|
-
var tmp =
|
|
3410
|
+
var tmp = Companion_instance_3;
|
|
4466
3411
|
return tmp.s5u(VOID, GameServerEngineControllerImpl$createDI$lambda(combinedLogger, externalModule, $this, coreConfig, serverConfig, logicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares));
|
|
4467
3412
|
}
|
|
4468
3413
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
4469
3414
|
return function () {
|
|
4470
3415
|
var tmp;
|
|
4471
|
-
if (this$0.
|
|
3416
|
+
if (this$0.z9h_1 == null) {
|
|
4472
3417
|
tmp = null;
|
|
4473
3418
|
} else {
|
|
4474
3419
|
// Inline function 'kotlin.let' call
|
|
4475
3420
|
// Inline function 'kotlin.contracts.contract' call
|
|
4476
3421
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
4477
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
3422
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.z9h_1)]));
|
|
4478
3423
|
}
|
|
4479
3424
|
var tmp1_elvis_lhs = tmp;
|
|
4480
3425
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -4502,27 +3447,27 @@
|
|
|
4502
3447
|
tmp_0.h5y(tmp$ret$3);
|
|
4503
3448
|
$this$DI.l5u(jsonModule());
|
|
4504
3449
|
$this$DI.l5u(serverHelpersModule());
|
|
4505
|
-
$this$DI.l5u(randomOrgModule(this$0.
|
|
3450
|
+
$this$DI.l5u(randomOrgModule(this$0.a9i_1));
|
|
4506
3451
|
return Unit_instance;
|
|
4507
3452
|
};
|
|
4508
3453
|
}
|
|
4509
3454
|
function GameServerEngineControllerImpl$di$delegate$lambda(this$0) {
|
|
4510
3455
|
return function () {
|
|
4511
|
-
var tmp =
|
|
3456
|
+
var tmp = Companion_instance_3;
|
|
4512
3457
|
return tmp.s5u(VOID, GameServerEngineControllerImpl$di$delegate$lambda$lambda(this$0));
|
|
4513
3458
|
};
|
|
4514
3459
|
}
|
|
4515
3460
|
function _no_name_provided__qut3iv_4($item) {
|
|
4516
|
-
this.
|
|
3461
|
+
this.i9i_1 = $item;
|
|
4517
3462
|
}
|
|
4518
3463
|
protoOf(_no_name_provided__qut3iv_4).d6f = function (action) {
|
|
4519
3464
|
return isInterface(action, Action);
|
|
4520
3465
|
};
|
|
4521
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
4522
|
-
return this.
|
|
3466
|
+
protoOf(_no_name_provided__qut3iv_4).l8z = function (state, action) {
|
|
3467
|
+
return this.i9i_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
4523
3468
|
};
|
|
4524
3469
|
protoOf(_no_name_provided__qut3iv_4).v6g = function (state, action) {
|
|
4525
|
-
return this.
|
|
3470
|
+
return this.l8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4526
3471
|
};
|
|
4527
3472
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
4528
3473
|
return function ($this$singleton) {
|
|
@@ -4579,7 +3524,7 @@
|
|
|
4579
3524
|
}
|
|
4580
3525
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
4581
3526
|
return function (it) {
|
|
4582
|
-
var tmp0_elvis_lhs =
|
|
3527
|
+
var tmp0_elvis_lhs = Companion_instance_4.h94(it);
|
|
4583
3528
|
var tmp;
|
|
4584
3529
|
if (tmp0_elvis_lhs == null) {
|
|
4585
3530
|
var tmp1_safe_receiver = $gameServer.n67().y6l_1;
|
|
@@ -4592,7 +3537,7 @@
|
|
|
4592
3537
|
}
|
|
4593
3538
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
4594
3539
|
return function (it) {
|
|
4595
|
-
var tmp0_elvis_lhs =
|
|
3540
|
+
var tmp0_elvis_lhs = Companion_instance_5.s92(it);
|
|
4596
3541
|
var tmp;
|
|
4597
3542
|
if (tmp0_elvis_lhs == null) {
|
|
4598
3543
|
var tmp1_safe_receiver = $gameServer.n67().y6l_1;
|
|
@@ -4614,7 +3559,7 @@
|
|
|
4614
3559
|
// Inline function 'kotlin.contracts.contract' call
|
|
4615
3560
|
$this$DI.l5u(tmp0_safe_receiver);
|
|
4616
3561
|
}
|
|
4617
|
-
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.
|
|
3562
|
+
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.a9i_1));
|
|
4618
3563
|
$this$DI.l5u(coreModule($coreConfig));
|
|
4619
3564
|
$this$DI.l5u(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
4620
3565
|
return Unit_instance;
|
|
@@ -4623,76 +3568,76 @@
|
|
|
4623
3568
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
4624
3569
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
4625
3570
|
production = production === VOID ? true : production;
|
|
4626
|
-
this.
|
|
4627
|
-
this.
|
|
3571
|
+
this.z9h_1 = loggerCallback;
|
|
3572
|
+
this.a9i_1 = randomOrgConfig;
|
|
4628
3573
|
AppEnvironment_getInstance().g6l(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
4629
3574
|
var tmp = this;
|
|
4630
|
-
tmp.
|
|
3575
|
+
tmp.b9i_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
4631
3576
|
var tmp_0 = this;
|
|
4632
|
-
tmp_0.
|
|
3577
|
+
tmp_0.c9i_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
4633
3578
|
var tmp_1 = this;
|
|
4634
3579
|
// Inline function 'org.kodein.di.instance' call
|
|
4635
3580
|
var this_0 = _get_di__ndbzja(this);
|
|
4636
3581
|
// Inline function 'org.kodein.type.generic' call
|
|
4637
3582
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4638
3583
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4639
|
-
tmp_1.
|
|
3584
|
+
tmp_1.d9i_1 = Instance(this_0, tmp$ret$0, null).e60(this, parser$factory());
|
|
4640
3585
|
var tmp_3 = this;
|
|
4641
3586
|
// Inline function 'org.kodein.di.instance' call
|
|
4642
3587
|
var this_1 = _get_di__ndbzja(this);
|
|
4643
3588
|
// Inline function 'org.kodein.type.generic' call
|
|
4644
3589
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4645
3590
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4646
|
-
tmp_3.
|
|
3591
|
+
tmp_3.e9i_1 = Instance(this_1, tmp$ret$2, null).e60(this, helper$factory());
|
|
4647
3592
|
var tmp_5 = this;
|
|
4648
3593
|
// Inline function 'org.kodein.di.instance' call
|
|
4649
3594
|
var this_2 = _get_di__ndbzja(this);
|
|
4650
3595
|
// Inline function 'org.kodein.type.generic' call
|
|
4651
3596
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4652
3597
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
4653
|
-
tmp_5.
|
|
3598
|
+
tmp_5.f9i_1 = Instance(this_2, tmp$ret$4, null).e60(this, resources$factory());
|
|
4654
3599
|
var tmp_7 = this;
|
|
4655
3600
|
// Inline function 'org.kodein.di.instance' call
|
|
4656
3601
|
var this_3 = _get_di__ndbzja(this);
|
|
4657
3602
|
// Inline function 'org.kodein.type.generic' call
|
|
4658
3603
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4659
3604
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
4660
|
-
tmp_7.
|
|
3605
|
+
tmp_7.g9i_1 = Instance(this_3, tmp$ret$6, null).e60(this, test$factory());
|
|
4661
3606
|
var tmp_9 = this;
|
|
4662
3607
|
// Inline function 'org.kodein.di.instance' call
|
|
4663
3608
|
var this_4 = _get_di__ndbzja(this);
|
|
4664
3609
|
// Inline function 'org.kodein.type.generic' call
|
|
4665
3610
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
4666
3611
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4667
|
-
tmp_9.
|
|
3612
|
+
tmp_9.h9i_1 = Instance(this_4, tmp$ret$8, null).e60(this, randomPoolProvider$factory());
|
|
4668
3613
|
}
|
|
4669
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3614
|
+
protoOf(GameServerEngineControllerImpl).t9h = function () {
|
|
4670
3615
|
// Inline function 'kotlin.getValue' call
|
|
4671
|
-
var this_0 = this.
|
|
3616
|
+
var this_0 = this.d9i_1;
|
|
4672
3617
|
parser$factory_0();
|
|
4673
3618
|
return this_0.u();
|
|
4674
3619
|
};
|
|
4675
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3620
|
+
protoOf(GameServerEngineControllerImpl).v9h = function () {
|
|
4676
3621
|
// Inline function 'kotlin.getValue' call
|
|
4677
|
-
var this_0 = this.
|
|
3622
|
+
var this_0 = this.e9i_1;
|
|
4678
3623
|
helper$factory_0();
|
|
4679
3624
|
return this_0.u();
|
|
4680
3625
|
};
|
|
4681
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3626
|
+
protoOf(GameServerEngineControllerImpl).w9h = function () {
|
|
4682
3627
|
// Inline function 'kotlin.getValue' call
|
|
4683
|
-
var this_0 = this.
|
|
3628
|
+
var this_0 = this.f9i_1;
|
|
4684
3629
|
resources$factory_0();
|
|
4685
3630
|
return this_0.u();
|
|
4686
3631
|
};
|
|
4687
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3632
|
+
protoOf(GameServerEngineControllerImpl).u9h = function () {
|
|
4688
3633
|
// Inline function 'kotlin.getValue' call
|
|
4689
|
-
var this_0 = this.
|
|
3634
|
+
var this_0 = this.g9i_1;
|
|
4690
3635
|
test$factory_0();
|
|
4691
3636
|
return this_0.u();
|
|
4692
3637
|
};
|
|
4693
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3638
|
+
protoOf(GameServerEngineControllerImpl).x9h = function () {
|
|
4694
3639
|
// Inline function 'kotlin.getValue' call
|
|
4695
|
-
var this_0 = this.
|
|
3640
|
+
var this_0 = this.h9i_1;
|
|
4696
3641
|
randomPoolProvider$factory_0();
|
|
4697
3642
|
return this_0.u();
|
|
4698
3643
|
};
|
|
@@ -4702,8 +3647,8 @@
|
|
|
4702
3647
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
4703
3648
|
return this.createGameEngineWithLogic();
|
|
4704
3649
|
};
|
|
4705
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4706
|
-
var combinedLogger =
|
|
3650
|
+
protoOf(GameServerEngineControllerImpl).y9h = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
3651
|
+
var combinedLogger = Companion_instance_6.qm();
|
|
4707
3652
|
var tmp;
|
|
4708
3653
|
if (coreConfig.fileLogsEnabled) {
|
|
4709
3654
|
tmp = new FileLoggerOutputImpl();
|
|
@@ -4712,8 +3657,8 @@
|
|
|
4712
3657
|
}
|
|
4713
3658
|
var fileLoggerOutput = tmp;
|
|
4714
3659
|
var tmp_0;
|
|
4715
|
-
if (!(this.
|
|
4716
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
3660
|
+
if (!(this.z9h_1 == null)) {
|
|
3661
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.z9h_1));
|
|
4717
3662
|
} else {
|
|
4718
3663
|
tmp_0 = null;
|
|
4719
3664
|
}
|
|
@@ -4756,12 +3701,12 @@
|
|
|
4756
3701
|
var gameServer = tmp_1.v5v(tmp$ret$7, null);
|
|
4757
3702
|
if (!(fileLoggerOutput == null)) {
|
|
4758
3703
|
var tmp_3 = fileLoggerOutput;
|
|
4759
|
-
tmp_3.
|
|
3704
|
+
tmp_3.w93_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
4760
3705
|
combinedLogger.sm(fileLoggerOutput);
|
|
4761
3706
|
}
|
|
4762
3707
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
4763
3708
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
4764
|
-
tmp_4.
|
|
3709
|
+
tmp_4.u92_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
4765
3710
|
combinedLogger.sm(callbackWrapperLoggerOutput);
|
|
4766
3711
|
}
|
|
4767
3712
|
return gameServer;
|
|
@@ -4826,58 +3771,17 @@
|
|
|
4826
3771
|
return receiver.randomPoolProvider;
|
|
4827
3772
|
}, null);
|
|
4828
3773
|
}
|
|
4829
|
-
function mapToRoom(_this__u8e3s4) {
|
|
4830
|
-
// Inline function 'kotlin.takeIf' call
|
|
4831
|
-
var this_0 = _this__u8e3s4.rules;
|
|
4832
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
4833
|
-
var tmp;
|
|
4834
|
-
// Inline function 'mapToRoom.<anonymous>' call
|
|
4835
|
-
if (_this__u8e3s4.rulesSetType.isCustom) {
|
|
4836
|
-
tmp = this_0;
|
|
4837
|
-
} else {
|
|
4838
|
-
tmp = null;
|
|
4839
|
-
}
|
|
4840
|
-
var tmp0_safe_receiver = tmp;
|
|
4841
|
-
var tmp1_rules = tmp0_safe_receiver == null ? null : mapToDto(tmp0_safe_receiver);
|
|
4842
|
-
var tmp2_rulesPreset = _this__u8e3s4.rulesSetType.value;
|
|
4843
|
-
var tmp3_players = _this__u8e3s4.playersMode.value;
|
|
4844
|
-
var tmp4_points = _this__u8e3s4.pointsMode.value;
|
|
4845
|
-
var tmp5_timeoutTime = _this__u8e3s4.timeoutTimeMillis / 1000 | 0;
|
|
4846
|
-
// Inline function 'kotlin.takeIf' call
|
|
4847
|
-
var this_1 = _this__u8e3s4.isPrivate;
|
|
4848
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
4849
|
-
var tmp_0;
|
|
4850
|
-
// Inline function 'mapToRoom.<anonymous>' call
|
|
4851
|
-
if (this_1) {
|
|
4852
|
-
tmp_0 = this_1;
|
|
4853
|
-
} else {
|
|
4854
|
-
tmp_0 = null;
|
|
4855
|
-
}
|
|
4856
|
-
var tmp6_isPrivate = tmp_0;
|
|
4857
|
-
// Inline function 'kotlin.takeIf' call
|
|
4858
|
-
var this_2 = _this__u8e3s4.options.isEnableChat;
|
|
4859
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
4860
|
-
var tmp_1;
|
|
4861
|
-
// Inline function 'mapToRoom.<anonymous>' call
|
|
4862
|
-
if (this_2) {
|
|
4863
|
-
tmp_1 = this_2;
|
|
4864
|
-
} else {
|
|
4865
|
-
tmp_1 = null;
|
|
4866
|
-
}
|
|
4867
|
-
var tmp7_isChatEnabled = tmp_1;
|
|
4868
|
-
return new RoomConfig(tmp3_players, tmp4_points, tmp5_timeoutTime, tmp2_rulesPreset, tmp6_isPrivate, tmp7_isChatEnabled, tmp1_rules);
|
|
4869
|
-
}
|
|
4870
3774
|
function TestHelper() {
|
|
4871
3775
|
}
|
|
4872
3776
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
4873
3777
|
// Inline function 'kotlin.getValue' call
|
|
4874
|
-
var this_0 = $this.
|
|
3778
|
+
var this_0 = $this.l9i_1;
|
|
4875
3779
|
playerAnswerInteractor$factory_0();
|
|
4876
3780
|
return this_0.u();
|
|
4877
3781
|
}
|
|
4878
3782
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
4879
3783
|
return function ($this$singleton) {
|
|
4880
|
-
return this$0.
|
|
3784
|
+
return this$0.j9i_1;
|
|
4881
3785
|
};
|
|
4882
3786
|
}
|
|
4883
3787
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -4906,20 +3810,20 @@
|
|
|
4906
3810
|
return emptyMap();
|
|
4907
3811
|
}
|
|
4908
3812
|
function TestHelperImpl(logger) {
|
|
4909
|
-
this.
|
|
3813
|
+
this.j9i_1 = logger;
|
|
4910
3814
|
var tmp = this;
|
|
4911
|
-
var tmp_0 =
|
|
4912
|
-
tmp.
|
|
3815
|
+
var tmp_0 = Companion_instance_3;
|
|
3816
|
+
tmp.k9i_1 = tmp_0.s5u(VOID, TestHelperImpl$di$lambda(this));
|
|
4913
3817
|
var tmp_1 = this;
|
|
4914
3818
|
// Inline function 'org.kodein.di.instance' call
|
|
4915
|
-
var this_0 = this.
|
|
3819
|
+
var this_0 = this.k9i_1;
|
|
4916
3820
|
// Inline function 'org.kodein.type.generic' call
|
|
4917
3821
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
4918
3822
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4919
|
-
tmp_1.
|
|
3823
|
+
tmp_1.l9i_1 = Instance(this_0, tmp$ret$0, null).e60(this, playerAnswerInteractor$factory());
|
|
4920
3824
|
}
|
|
4921
3825
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
4922
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
3826
|
+
return _get_playerAnswerInteractor__msggz1(this).g8d(playerId, table, botConfig);
|
|
4923
3827
|
};
|
|
4924
3828
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
4925
3829
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -4927,7 +3831,7 @@
|
|
|
4927
3831
|
var tmp$ret$0;
|
|
4928
3832
|
$l$block_0: {
|
|
4929
3833
|
// Inline function 'kotlin.collections.any' call
|
|
4930
|
-
var this_0 = mechanicAction.
|
|
3834
|
+
var this_0 = mechanicAction.c8q();
|
|
4931
3835
|
var tmp;
|
|
4932
3836
|
if (isInterface(this_0, Collection)) {
|
|
4933
3837
|
tmp = this_0.p();
|
|
@@ -4960,7 +3864,7 @@
|
|
|
4960
3864
|
var tmp$ret$0;
|
|
4961
3865
|
$l$block_0: {
|
|
4962
3866
|
// Inline function 'kotlin.collections.any' call
|
|
4963
|
-
var this_0 = action.
|
|
3867
|
+
var this_0 = action.c8q();
|
|
4964
3868
|
var tmp;
|
|
4965
3869
|
if (isInterface(this_0, Collection)) {
|
|
4966
3870
|
tmp = this_0.p();
|
|
@@ -5006,7 +3910,7 @@
|
|
|
5006
3910
|
$this$Module.l5u(engineHelpersModule());
|
|
5007
3911
|
// Inline function 'org.kodein.di.bind' call
|
|
5008
3912
|
// Inline function 'org.kodein.type.generic' call
|
|
5009
|
-
var tmp = typeToken(createKType(getKClass(
|
|
3913
|
+
var tmp = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
5010
3914
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
5011
3915
|
var tmp_0 = $this$Module.j5u(tmp$ret$0, null, null);
|
|
5012
3916
|
// Inline function 'org.kodein.di.singleton' call
|
|
@@ -5015,46 +3919,13 @@
|
|
|
5015
3919
|
var tmp_2 = $this$Module.m5u();
|
|
5016
3920
|
var tmp_3 = $this$Module.n5u();
|
|
5017
3921
|
// Inline function 'org.kodein.type.generic' call
|
|
5018
|
-
var tmp_4 = typeToken(createKType(getKClass(
|
|
3922
|
+
var tmp_4 = typeToken(createKType(getKClass(TestHelperImpl), arrayOf([]), false));
|
|
5019
3923
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
5020
3924
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
5021
3925
|
tmp_0.h5y(tmp$ret$3);
|
|
5022
|
-
// Inline function 'org.kodein.di.bind' call
|
|
5023
|
-
// Inline function 'org.kodein.type.generic' call
|
|
5024
|
-
var tmp_5 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
5025
|
-
var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
5026
|
-
var tmp_6 = $this$Module.j5u(tmp$ret$4, null, null);
|
|
5027
|
-
// Inline function 'org.kodein.di.singleton' call
|
|
5028
|
-
var creator_0 = serverHelpersModule$lambda$lambda_0;
|
|
5029
|
-
var tmp_7 = $this$Module.o5u();
|
|
5030
|
-
var tmp_8 = $this$Module.m5u();
|
|
5031
|
-
var tmp_9 = $this$Module.n5u();
|
|
5032
|
-
// Inline function 'org.kodein.type.generic' call
|
|
5033
|
-
var tmp_10 = typeToken(createKType(getKClass(TestHelperImpl), arrayOf([]), false));
|
|
5034
|
-
var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
5035
|
-
var tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, creator_0);
|
|
5036
|
-
tmp_6.h5y(tmp$ret$7);
|
|
5037
|
-
// Inline function 'org.kodein.di.bind' call
|
|
5038
|
-
// Inline function 'org.kodein.type.generic' call
|
|
5039
|
-
var tmp_11 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
5040
|
-
var tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
|
|
5041
|
-
var tmp_12 = $this$Module.j5u(tmp$ret$8, null, null);
|
|
5042
|
-
// Inline function 'org.kodein.di.singleton' call
|
|
5043
|
-
var creator_1 = serverHelpersModule$lambda$lambda_1;
|
|
5044
|
-
var tmp_13 = $this$Module.o5u();
|
|
5045
|
-
var tmp_14 = $this$Module.m5u();
|
|
5046
|
-
var tmp_15 = $this$Module.n5u();
|
|
5047
|
-
// Inline function 'org.kodein.type.generic' call
|
|
5048
|
-
var tmp_16 = typeToken(createKType(getKClass(GameResourcesImpl), arrayOf([]), false));
|
|
5049
|
-
var tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
5050
|
-
var tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, creator_1);
|
|
5051
|
-
tmp_12.h5y(tmp$ret$11);
|
|
5052
3926
|
return Unit_instance;
|
|
5053
3927
|
}
|
|
5054
3928
|
function serverHelpersModule$lambda$lambda($this$singleton) {
|
|
5055
|
-
return new GameHelperImpl();
|
|
5056
|
-
}
|
|
5057
|
-
function serverHelpersModule$lambda$lambda_0($this$singleton) {
|
|
5058
3929
|
// Inline function 'org.kodein.di.instance' call
|
|
5059
3930
|
var tmp = $this$singleton.w5v();
|
|
5060
3931
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5063,9 +3934,6 @@
|
|
|
5063
3934
|
var tmp$ret$1 = tmp.v5v(tmp$ret$0, null);
|
|
5064
3935
|
return new TestHelperImpl(tmp$ret$1);
|
|
5065
3936
|
}
|
|
5066
|
-
function serverHelpersModule$lambda$lambda_1($this$singleton) {
|
|
5067
|
-
return new GameResourcesImpl();
|
|
5068
|
-
}
|
|
5069
3937
|
//region block: post-declaration
|
|
5070
3938
|
protoOf(GameServer).roomOnCreate = roomOnCreate;
|
|
5071
3939
|
protoOf(GameServer).roomOnDelete = roomOnDelete;
|
|
@@ -5094,28 +3962,27 @@
|
|
|
5094
3962
|
defineProp(protoOf(RemoveSpectatorsAction), 'actionTag', function () {
|
|
5095
3963
|
return this.u6e();
|
|
5096
3964
|
});
|
|
5097
|
-
protoOf(GameResourcesImpl).createBotUser = createBotUser;
|
|
5098
3965
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
5099
3966
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
5100
|
-
return this.
|
|
3967
|
+
return this.t9h();
|
|
5101
3968
|
});
|
|
5102
3969
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
5103
|
-
return this.
|
|
3970
|
+
return this.v9h();
|
|
5104
3971
|
});
|
|
5105
3972
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
5106
|
-
return this.
|
|
3973
|
+
return this.w9h();
|
|
5107
3974
|
});
|
|
5108
3975
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
5109
|
-
return this.
|
|
3976
|
+
return this.u9h();
|
|
5110
3977
|
});
|
|
5111
3978
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
5112
|
-
return this.
|
|
3979
|
+
return this.x9h();
|
|
5113
3980
|
});
|
|
5114
3981
|
//endregion
|
|
5115
3982
|
//region block: init
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
3983
|
+
Companion_instance_7 = new Companion();
|
|
3984
|
+
Companion_instance_8 = new Companion_0();
|
|
3985
|
+
Companion_instance_9 = new Companion_1();
|
|
5119
3986
|
//endregion
|
|
5120
3987
|
//region block: exports
|
|
5121
3988
|
function $jsExportAll$(_) {
|