client_plugin_logic_deb 1.4.93 → 1.4.95
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/88b0986a7186d029-atomicfu-js-ir.js +9 -9
- package/Kodein-kodein-di.js +546 -546
- package/KosiTypeSystem-kaverit.js +77 -77
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +75 -75
- package/Logic_Debertz-client_plugin.d.ts +15 -14
- package/Logic_Debertz-client_plugin.js +2999 -3110
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +1325 -1325
- package/Logic_Debertz-engine.js +10204 -10403
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +7012 -7010
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +982 -2163
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +353 -339
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1893 -1893
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1338 -1338
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +544 -398
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/package.json +1 -1
- package/uuid-js-ir.js +33 -33
|
@@ -31,132 +31,150 @@
|
|
|
31
31
|
'use strict';
|
|
32
32
|
//region block: imports
|
|
33
33
|
var imul = Math.imul;
|
|
34
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
35
|
-
var Unit_getInstance = kotlin_kotlin.$_$.
|
|
36
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
37
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
38
|
-
var AppState = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
39
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
40
|
-
var VOID = kotlin_kotlin.$_$.
|
|
41
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
34
|
+
var CoroutineImpl = kotlin_kotlin.$_$.x8;
|
|
35
|
+
var Unit_getInstance = kotlin_kotlin.$_$.r4;
|
|
36
|
+
var protoOf = kotlin_kotlin.$_$.ka;
|
|
37
|
+
var THROW_CCE = kotlin_kotlin.$_$.cd;
|
|
38
|
+
var AppState = kotlin_com_gamewithcats_game_engine_engine.$_$.h7;
|
|
39
|
+
var classMeta = kotlin_kotlin.$_$.h9;
|
|
40
|
+
var VOID = kotlin_kotlin.$_$.he;
|
|
41
|
+
var setMetadataFor = kotlin_kotlin.$_$.la;
|
|
42
42
|
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
43
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
44
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
43
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
44
|
+
var isInterface = kotlin_kotlin.$_$.y9;
|
|
45
45
|
var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
|
|
46
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
47
|
-
var BaseGame = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
48
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
46
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.j8;
|
|
47
|
+
var BaseGame = kotlin_com_gamewithcats_game_engine_engine.$_$.k7;
|
|
48
|
+
var emptyList = kotlin_kotlin.$_$.d6;
|
|
49
49
|
var GameLogger = kotlin_com_gamewithcats_game_engine_core.$_$.m3;
|
|
50
50
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
51
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
51
|
+
var arrayOf = kotlin_kotlin.$_$.qd;
|
|
52
52
|
var createKType = kotlin_kotlin.$_$.b;
|
|
53
53
|
var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
|
|
54
54
|
var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
|
|
55
55
|
var Instance = kotlin_org_kodein_di_kodein_di.$_$.e;
|
|
56
|
-
var plus = kotlin_kotlin.$_$.
|
|
57
|
-
var GameStore = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
56
|
+
var plus = kotlin_kotlin.$_$.k7;
|
|
57
|
+
var GameStore = kotlin_com_gamewithcats_game_engine_engine.$_$.m7;
|
|
58
58
|
var PlayerConnectionState_LOST_CONNECTION_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.i4;
|
|
59
|
-
var PlayerConnectionUpdateAction = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
59
|
+
var PlayerConnectionUpdateAction = kotlin_com_gamewithcats_game_engine_engine.$_$.m6;
|
|
60
60
|
var PlayerConnectionState_LIVE_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.h4;
|
|
61
61
|
var PlayerConnectionState_LEFT_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.g4;
|
|
62
|
-
var toList = kotlin_kotlin.$_$.
|
|
62
|
+
var toList = kotlin_kotlin.$_$.a8;
|
|
63
63
|
var getPlayer = kotlin_com_gamewithcats_game_engine_core.$_$.o;
|
|
64
64
|
var sortWithItem = kotlin_com_gamewithcats_game_engine_core.$_$.z3;
|
|
65
|
-
var ClearAction_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
65
|
+
var ClearAction_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.z8;
|
|
66
66
|
var toDomainEnumSafe = kotlin_com_gamewithcats_game_engine_core.$_$.b4;
|
|
67
67
|
var Reason_DEPLOY_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.x4;
|
|
68
68
|
var GameFinishedReason = kotlin_com_gamewithcats_game_engine_core.$_$.z1;
|
|
69
69
|
var GameErrorReason = kotlin_com_gamewithcats_game_engine_core.$_$.y1;
|
|
70
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
71
|
-
var FinishingGameMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
72
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
73
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
74
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
75
|
-
var to = kotlin_kotlin.$_$.
|
|
76
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
77
|
-
var Companion_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
78
|
-
var Long = kotlin_kotlin.$_$.
|
|
79
|
-
var toString = kotlin_kotlin.$_$.
|
|
80
|
-
var Enum = kotlin_kotlin.$_$.
|
|
70
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.zd;
|
|
71
|
+
var FinishingGameMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.n5;
|
|
72
|
+
var defineProp = kotlin_kotlin.$_$.j9;
|
|
73
|
+
var KProperty1 = kotlin_kotlin.$_$.za;
|
|
74
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.n9;
|
|
75
|
+
var to = kotlin_kotlin.$_$.ge;
|
|
76
|
+
var mapOf = kotlin_kotlin.$_$.e7;
|
|
77
|
+
var Companion_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.b9;
|
|
78
|
+
var Long = kotlin_kotlin.$_$.wc;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.pa;
|
|
80
|
+
var Enum = kotlin_kotlin.$_$.rc;
|
|
81
81
|
var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a;
|
|
82
|
-
var StoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
82
|
+
var StoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.q6;
|
|
83
83
|
var Singleton = kotlin_org_kodein_di_kodein_di.$_$.d;
|
|
84
|
-
var TableLifecycleReducer = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
84
|
+
var TableLifecycleReducer = kotlin_com_gamewithcats_game_engine_engine.$_$.e7;
|
|
85
85
|
var jsonModule = kotlin_com_gamewithcats_game_engine_engine.$_$.q3;
|
|
86
86
|
var getEngineGameModule = kotlin_com_gamewithcats_game_engine_engine.$_$.p3;
|
|
87
|
-
var MechanicLifecycleReducer = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
87
|
+
var MechanicLifecycleReducer = kotlin_com_gamewithcats_game_engine_engine.$_$.b7;
|
|
88
88
|
var Provider = kotlin_org_kodein_di_kodein_di.$_$.c;
|
|
89
|
-
var GameStoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
90
|
-
var interfaceMeta = kotlin_kotlin.$_$.
|
|
91
|
-
var listOf = kotlin_kotlin.$_$.
|
|
89
|
+
var GameStoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.l7;
|
|
90
|
+
var interfaceMeta = kotlin_kotlin.$_$.q9;
|
|
91
|
+
var listOf = kotlin_kotlin.$_$.a7;
|
|
92
92
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
93
|
-
var Collection = kotlin_kotlin.$_$.
|
|
94
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
93
|
+
var Collection = kotlin_kotlin.$_$.t4;
|
|
94
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.k5;
|
|
95
95
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
96
|
-
var PlayerTurnTimerTag = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
96
|
+
var PlayerTurnTimerTag = kotlin_com_gamewithcats_game_engine_engine.$_$.t6;
|
|
97
97
|
var StopTimerAction = kotlin_com_gamewithcats_game_engine_core.$_$.f3;
|
|
98
|
-
var getContinuePlayerTurnTimerDelayMillis = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
98
|
+
var getContinuePlayerTurnTimerDelayMillis = kotlin_com_gamewithcats_game_engine_engine.$_$.u6;
|
|
99
99
|
var TimerType_DELAY_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.y4;
|
|
100
100
|
var StartTimerAction = kotlin_com_gamewithcats_game_engine_core.$_$.e3;
|
|
101
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
101
|
+
var listOf_0 = kotlin_kotlin.$_$.b7;
|
|
102
102
|
var mapToFinishReason = kotlin_com_gamewithcats_game_engine_core.$_$.p;
|
|
103
|
-
var PlayerConnectionChangedMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
104
|
-
var AskBotAction = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
105
|
-
var Companion_getInstance_0 = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
103
|
+
var PlayerConnectionChangedMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.v5;
|
|
104
|
+
var AskBotAction = kotlin_com_gamewithcats_game_engine_engine.$_$.l6;
|
|
105
|
+
var Companion_getInstance_0 = kotlin_com_gamewithcats_game_engine_engine.$_$.y8;
|
|
106
106
|
var FinishingGameToClientAction = kotlin_com_gamewithcats_game_engine_engine.$_$.o4;
|
|
107
107
|
var FinishGameToClientAction = kotlin_com_gamewithcats_game_engine_engine.$_$.n4;
|
|
108
|
-
var Companion_getInstance_1 = kotlin_com_gamewithcats_game_engine_engine.$_$.g8;
|
|
109
108
|
var getGameCreator = kotlin_com_gamewithcats_game_engine_engine.$_$.q;
|
|
109
|
+
var UserActionPayload_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.i8;
|
|
110
110
|
var mapToClient = kotlin_com_gamewithcats_game_engine_engine.$_$.m2;
|
|
111
111
|
var PlayerReturnsReason = kotlin_com_gamewithcats_game_engine_core.$_$.c2;
|
|
112
112
|
var ContinueGameToClientAction = kotlin_com_gamewithcats_game_engine_engine.$_$.m4;
|
|
113
113
|
var System_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.a;
|
|
114
|
-
var
|
|
114
|
+
var Companion_getInstance_1 = kotlin_kotlin.$_$.j4;
|
|
115
115
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.f;
|
|
116
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
116
|
+
var toDuration = kotlin_kotlin.$_$.jc;
|
|
117
117
|
var PlayerConnectionState_DISCONNECTING_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.f4;
|
|
118
118
|
var PlayerConnectionState_DELETED_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.e4;
|
|
119
119
|
var MechanicException = kotlin_com_gamewithcats_game_engine_core.$_$.a;
|
|
120
120
|
var get_actionTag = kotlin_com_gamewithcats_game_engine_core.$_$.k2;
|
|
121
121
|
var Action = kotlin_com_gamewithcats_game_engine_core.$_$.l2;
|
|
122
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
123
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
124
|
-
var equals = kotlin_kotlin.$_$.
|
|
122
|
+
var getStringHashCode = kotlin_kotlin.$_$.o9;
|
|
123
|
+
var hashCode = kotlin_kotlin.$_$.p9;
|
|
124
|
+
var equals = kotlin_kotlin.$_$.k9;
|
|
125
125
|
var notValidateWhenFinishing = kotlin_com_gamewithcats_game_engine_core.$_$.v2;
|
|
126
126
|
var NotValidateIfGameFinishing = kotlin_com_gamewithcats_game_engine_core.$_$.w2;
|
|
127
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
128
|
-
var CommonStoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
129
|
-
var BotGameStoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
130
|
-
var GameMechanicStoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
127
|
+
var objectMeta = kotlin_kotlin.$_$.ja;
|
|
128
|
+
var CommonStoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.o6;
|
|
129
|
+
var BotGameStoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.n6;
|
|
130
|
+
var GameMechanicStoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.p6;
|
|
131
131
|
var AsyncProvider = kotlin_com_gamewithcats_game_engine_core.$_$.g2;
|
|
132
132
|
var LastCardInteractor = kotlin_com_gamewithcats_game_engine_engine.$_$.s3;
|
|
133
133
|
var LogicReduxConfig = kotlin_com_gamewithcats_game_engine_engine.$_$.f3;
|
|
134
134
|
var BotReduxConfig = kotlin_com_gamewithcats_game_engine_engine.$_$.d3;
|
|
135
|
-
var listOfNotNull = kotlin_kotlin.$_$.
|
|
136
|
-
var gameStatisticsMiddleware = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
137
|
-
var clearOnFinishMiddleware = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
138
|
-
var putPlayerLastCardMiddleware = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
139
|
-
var PartyEndedAction = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
135
|
+
var listOfNotNull = kotlin_kotlin.$_$.z6;
|
|
136
|
+
var gameStatisticsMiddleware = kotlin_com_gamewithcats_game_engine_engine.$_$.r6;
|
|
137
|
+
var clearOnFinishMiddleware = kotlin_com_gamewithcats_game_engine_engine.$_$.x6;
|
|
138
|
+
var putPlayerLastCardMiddleware = kotlin_com_gamewithcats_game_engine_engine.$_$.s6;
|
|
139
|
+
var PartyEndedAction = kotlin_com_gamewithcats_game_engine_engine.$_$.i5;
|
|
140
140
|
var Middleware = kotlin_com_gamewithcats_game_engine_core.$_$.m2;
|
|
141
|
-
var MechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
142
|
-
var
|
|
141
|
+
var MechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.q5;
|
|
142
|
+
var RoomActionPayload = kotlin_com_gamewithcats_game_engine_engine.$_$.p4;
|
|
143
|
+
var mapToClient_0 = kotlin_com_gamewithcats_game_engine_engine.$_$.d5;
|
|
144
|
+
var listOfNotNull_0 = kotlin_kotlin.$_$.y6;
|
|
143
145
|
var UserMessage = kotlin_com_gamewithcats_game_engine_engine.$_$.l;
|
|
144
|
-
var
|
|
145
|
-
var
|
|
146
|
-
var
|
|
147
|
-
var
|
|
148
|
-
var
|
|
149
|
-
var
|
|
150
|
-
var
|
|
151
|
-
var
|
|
152
|
-
var
|
|
153
|
-
var
|
|
154
|
-
var
|
|
155
|
-
var
|
|
156
|
-
var
|
|
157
|
-
var
|
|
158
|
-
var
|
|
159
|
-
var
|
|
146
|
+
var mapToClient_1 = kotlin_com_gamewithcats_game_engine_engine.$_$.w4;
|
|
147
|
+
var MessageMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.r5;
|
|
148
|
+
var mapToClient_2 = kotlin_com_gamewithcats_game_engine_engine.$_$.r4;
|
|
149
|
+
var WinnerCombinationsMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.i6;
|
|
150
|
+
var mapToClient_3 = kotlin_com_gamewithcats_game_engine_engine.$_$.h5;
|
|
151
|
+
var PickUpBribeMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.u5;
|
|
152
|
+
var mapToClient_4 = kotlin_com_gamewithcats_game_engine_engine.$_$.t4;
|
|
153
|
+
var PutCardMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.z5;
|
|
154
|
+
var mapToClient_5 = kotlin_com_gamewithcats_game_engine_engine.$_$.c5;
|
|
155
|
+
var CombinationChoiceMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.k5;
|
|
156
|
+
var mapToClient_6 = kotlin_com_gamewithcats_game_engine_engine.$_$.a5;
|
|
157
|
+
var TrumpMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.h6;
|
|
158
|
+
var mapToClient_7 = kotlin_com_gamewithcats_game_engine_engine.$_$.g5;
|
|
159
|
+
var SuitChoiceMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.e6;
|
|
160
|
+
var mapToClient_8 = kotlin_com_gamewithcats_game_engine_engine.$_$.f5;
|
|
161
|
+
var PlayerReadyMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.w5;
|
|
162
|
+
var mapToClient_9 = kotlin_com_gamewithcats_game_engine_engine.$_$.v4;
|
|
163
|
+
var TeamsDataMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.f6;
|
|
164
|
+
var mapToClient_10 = kotlin_com_gamewithcats_game_engine_engine.$_$.z4;
|
|
165
|
+
var SceneActMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.b6;
|
|
166
|
+
var mapToClient_11 = kotlin_com_gamewithcats_game_engine_engine.$_$.u4;
|
|
167
|
+
var SceneMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.c6;
|
|
168
|
+
var mapToClient_12 = kotlin_com_gamewithcats_game_engine_engine.$_$.b5;
|
|
169
|
+
var RestartGameMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.a6;
|
|
170
|
+
var mapToClient_13 = kotlin_com_gamewithcats_game_engine_engine.$_$.y4;
|
|
171
|
+
var FinishGameMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.m5;
|
|
172
|
+
var mapToClient_14 = kotlin_com_gamewithcats_game_engine_engine.$_$.e5;
|
|
173
|
+
var mapToClient_15 = kotlin_com_gamewithcats_game_engine_engine.$_$.x4;
|
|
174
|
+
var ContinueGameMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.l5;
|
|
175
|
+
var mapToClient_16 = kotlin_com_gamewithcats_game_engine_engine.$_$.s4;
|
|
176
|
+
var StartGameMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.d6;
|
|
177
|
+
var get_isCreated = kotlin_com_gamewithcats_game_engine_engine.$_$.i7;
|
|
160
178
|
var notValidateWhenFinished = kotlin_com_gamewithcats_game_engine_core.$_$.t2;
|
|
161
179
|
var notValidateTimerReset = kotlin_com_gamewithcats_game_engine_engine.$_$.a4;
|
|
162
180
|
var NotValidateIfGameFinished = kotlin_com_gamewithcats_game_engine_core.$_$.u2;
|
|
@@ -164,46 +182,46 @@
|
|
|
164
182
|
var TimerTickAction = kotlin_com_gamewithcats_game_engine_core.$_$.h3;
|
|
165
183
|
var PlayerConnectionState_TIMEOUT_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.j4;
|
|
166
184
|
var GameEngineConfig_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.x5;
|
|
167
|
-
var
|
|
168
|
-
var get_TAG = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
185
|
+
var Companion_getInstance_2 = kotlin_com_gamewithcats_game_engine_engine.$_$.c9;
|
|
186
|
+
var get_TAG = kotlin_com_gamewithcats_game_engine_engine.$_$.y6;
|
|
169
187
|
var middleware = kotlin_com_gamewithcats_game_engine_core.$_$.p2;
|
|
170
|
-
var get_isFinished = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
188
|
+
var get_isFinished = kotlin_com_gamewithcats_game_engine_engine.$_$.j7;
|
|
171
189
|
var Reducer = kotlin_com_gamewithcats_game_engine_core.$_$.n2;
|
|
172
|
-
var BaseMechanicLifecycleReducer = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
173
|
-
var GameLifecycleState_CREATED_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
174
|
-
var AppStatePayload = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
175
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
176
|
-
var isArray = kotlin_kotlin.$_$.
|
|
177
|
-
var arrayIterator = kotlin_kotlin.$_$.
|
|
190
|
+
var BaseMechanicLifecycleReducer = kotlin_com_gamewithcats_game_engine_engine.$_$.a7;
|
|
191
|
+
var GameLifecycleState_CREATED_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.d8;
|
|
192
|
+
var AppStatePayload = kotlin_com_gamewithcats_game_engine_engine.$_$.g7;
|
|
193
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
194
|
+
var isArray = kotlin_kotlin.$_$.r9;
|
|
195
|
+
var arrayIterator = kotlin_kotlin.$_$.a9;
|
|
178
196
|
var values = kotlin_com_gamewithcats_game_engine_core.$_$.t;
|
|
179
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
180
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
197
|
+
var copyToArray = kotlin_kotlin.$_$.a6;
|
|
198
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
181
199
|
var values_0 = kotlin_com_gamewithcats_game_engine_engine.$_$.v2;
|
|
182
200
|
var values_1 = kotlin_com_gamewithcats_game_engine_engine.$_$.w2;
|
|
183
|
-
var BotIntelligenceLevel_SUPER_HARD_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
201
|
+
var BotIntelligenceLevel_SUPER_HARD_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.u7;
|
|
184
202
|
var Options = kotlin_com_gamewithcats_game_engine_engine.$_$.u2;
|
|
185
203
|
var Config = kotlin_com_gamewithcats_game_engine_engine.$_$.t2;
|
|
186
|
-
var PointsMode_SMALL_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
187
|
-
var PointsMode_MEDIUM_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
188
|
-
var PointsMode_BIG_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
189
|
-
var PointsMode_TEST_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
190
|
-
var PlayersMode_TWO_PLAYERS_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
191
|
-
var PlayersMode_THREE_PLAYERS_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
192
|
-
var PlayersMode_FOUR_PLAYERS_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
193
|
-
var PlayersMode_FOUR_PLAYERS_BY_TEAM_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
204
|
+
var PointsMode_SMALL_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.b8;
|
|
205
|
+
var PointsMode_MEDIUM_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.a8;
|
|
206
|
+
var PointsMode_BIG_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.z7;
|
|
207
|
+
var PointsMode_TEST_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.c8;
|
|
208
|
+
var PlayersMode_TWO_PLAYERS_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.y7;
|
|
209
|
+
var PlayersMode_THREE_PLAYERS_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.x7;
|
|
210
|
+
var PlayersMode_FOUR_PLAYERS_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.w7;
|
|
211
|
+
var PlayersMode_FOUR_PLAYERS_BY_TEAM_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.v7;
|
|
194
212
|
var Rules = kotlin_com_gamewithcats_game_engine_core.$_$.u;
|
|
195
213
|
var mapOfObject = kotlin_com_gamewithcats_game_engine_core.$_$.x3;
|
|
196
|
-
var getValue = kotlin_kotlin.$_$.
|
|
197
|
-
var
|
|
214
|
+
var getValue = kotlin_kotlin.$_$.o6;
|
|
215
|
+
var Companion_getInstance_3 = kotlin_com_gamewithcats_game_engine_core.$_$.g5;
|
|
198
216
|
var RulesSetType_custom_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.l4;
|
|
199
217
|
var RulesSetType_debertzKharkiv_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.n4;
|
|
200
218
|
var RulesSetType_debertzCommon_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.m4;
|
|
201
219
|
var RulesSetType_klabor_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.o4;
|
|
202
220
|
var RulesSetType_belot_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.k4;
|
|
203
221
|
var valueOf = kotlin_com_gamewithcats_game_engine_core.$_$.s;
|
|
204
|
-
var Default_getInstance = kotlin_kotlin.$_$.
|
|
222
|
+
var Default_getInstance = kotlin_kotlin.$_$.g4;
|
|
205
223
|
var GameUserInfo = kotlin_com_gamewithcats_game_engine_core.$_$.b;
|
|
206
|
-
var
|
|
224
|
+
var Companion_getInstance_4 = kotlin_org_kodein_di_kodein_di.$_$.b;
|
|
207
225
|
var CardsGeneratorProviderImpl = kotlin_com_gamewithcats_game_engine_engine.$_$.m3;
|
|
208
226
|
var CardsGeneratorProvider = kotlin_com_gamewithcats_game_engine_engine.$_$.n3;
|
|
209
227
|
var get_coreModule = kotlin_com_gamewithcats_game_engine_core.$_$.j2;
|
|
@@ -213,14 +231,14 @@
|
|
|
213
231
|
var ParserHelperImpl = kotlin_com_gamewithcats_game_engine_engine.$_$.a;
|
|
214
232
|
var Logger_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.w5;
|
|
215
233
|
var DealerConfig = kotlin_com_gamewithcats_game_engine_engine.$_$.e3;
|
|
216
|
-
var toList_0 = kotlin_kotlin.$_$.
|
|
234
|
+
var toList_0 = kotlin_kotlin.$_$.z7;
|
|
217
235
|
var get_direct = kotlin_org_kodein_di_kodein_di.$_$.f;
|
|
218
236
|
var get_botGameModule = kotlin_com_gamewithcats_game_engine_engine.$_$.o3;
|
|
219
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
237
|
+
var emptyMap = kotlin_kotlin.$_$.e6;
|
|
220
238
|
var PlayerAnswerInteractor = kotlin_com_gamewithcats_game_engine_engine.$_$.t3;
|
|
221
239
|
var FromClientActionPayloadProvider = kotlin_com_gamewithcats_game_engine_engine.$_$.f4;
|
|
222
|
-
var mapFromClient = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
223
|
-
var NextPlayerTurnAction = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
240
|
+
var mapFromClient = kotlin_com_gamewithcats_game_engine_engine.$_$.q4;
|
|
241
|
+
var NextPlayerTurnAction = kotlin_com_gamewithcats_game_engine_engine.$_$.t5;
|
|
224
242
|
//endregion
|
|
225
243
|
//region block: pre-declaration
|
|
226
244
|
setMetadataFor(GameServer$subscribeWith$slambda$slambda, 'GameServer$subscribeWith$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
@@ -265,7 +283,7 @@
|
|
|
265
283
|
tmp = existingNicknames;
|
|
266
284
|
}
|
|
267
285
|
existingNicknames = tmp;
|
|
268
|
-
return this.
|
|
286
|
+
return this.j7z(playerId, existingNicknames);
|
|
269
287
|
}
|
|
270
288
|
setMetadataFor(GameResources, 'GameResources', interfaceMeta);
|
|
271
289
|
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
@@ -294,10 +312,10 @@
|
|
|
294
312
|
}
|
|
295
313
|
middlewares = tmp_0;
|
|
296
314
|
isPrivateRoom = isPrivateRoom === VOID ? false : isPrivateRoom;
|
|
297
|
-
finishGameIfAllBots = finishGameIfAllBots === VOID ? (new ServerReduxConfig()).
|
|
298
|
-
closeIfBotsAtFinish = closeIfBotsAtFinish === VOID ? (new ServerReduxConfig()).
|
|
299
|
-
dealerStrategy = dealerStrategy === VOID ? (new LogicReduxConfig()).
|
|
300
|
-
return this.
|
|
315
|
+
finishGameIfAllBots = finishGameIfAllBots === VOID ? (new ServerReduxConfig()).w7w_1 : finishGameIfAllBots;
|
|
316
|
+
closeIfBotsAtFinish = closeIfBotsAtFinish === VOID ? (new ServerReduxConfig()).z7w_1 : closeIfBotsAtFinish;
|
|
317
|
+
dealerStrategy = dealerStrategy === VOID ? (new LogicReduxConfig()).z35_1.a36_1 : dealerStrategy;
|
|
318
|
+
return this.y7z(reducers, middlewares, isPrivateRoom, finishGameIfAllBots, closeIfBotsAtFinish, dealerStrategy);
|
|
301
319
|
}
|
|
302
320
|
setMetadataFor(GameEngineController, 'GameEngineController', interfaceMeta);
|
|
303
321
|
setMetadataFor(_no_name_provided__qut3iv_7, VOID, classMeta, VOID, [Reducer]);
|
|
@@ -306,17 +324,17 @@
|
|
|
306
324
|
setMetadataFor(TestHelperImpl, 'TestHelperImpl', classMeta, VOID, [TestHelper]);
|
|
307
325
|
//endregion
|
|
308
326
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
309
|
-
this.
|
|
327
|
+
this.a7w_1 = $subscriber;
|
|
310
328
|
CoroutineImpl.call(this, resultContinuation);
|
|
311
329
|
}
|
|
312
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
313
|
-
var tmp = this.
|
|
330
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).c51 = function (it, $completion) {
|
|
331
|
+
var tmp = this.d51(it, $completion);
|
|
314
332
|
tmp.xh_1 = Unit_getInstance();
|
|
315
333
|
tmp.yh_1 = null;
|
|
316
334
|
return tmp.ei();
|
|
317
335
|
};
|
|
318
336
|
protoOf(GameServer$subscribeWith$slambda$slambda).qi = function (p1, $completion) {
|
|
319
|
-
return this.
|
|
337
|
+
return this.c51(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
320
338
|
};
|
|
321
339
|
protoOf(GameServer$subscribeWith$slambda$slambda).ei = function () {
|
|
322
340
|
var suspendResult = this.xh_1;
|
|
@@ -325,7 +343,7 @@
|
|
|
325
343
|
var tmp = this.vh_1;
|
|
326
344
|
if (tmp === 0) {
|
|
327
345
|
this.wh_1 = 1;
|
|
328
|
-
this.
|
|
346
|
+
this.a7w_1(this.b7w_1);
|
|
329
347
|
return Unit_getInstance();
|
|
330
348
|
} else if (tmp === 1) {
|
|
331
349
|
throw this.yh_1;
|
|
@@ -336,15 +354,15 @@
|
|
|
336
354
|
}
|
|
337
355
|
while (true);
|
|
338
356
|
};
|
|
339
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
340
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
341
|
-
i.
|
|
357
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).d51 = function (it, completion) {
|
|
358
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.a7w_1, completion);
|
|
359
|
+
i.b7w_1 = it;
|
|
342
360
|
return i;
|
|
343
361
|
};
|
|
344
362
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
345
363
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
346
364
|
var l = function (it, $completion) {
|
|
347
|
-
return i.
|
|
365
|
+
return i.c51(it, $completion);
|
|
348
366
|
};
|
|
349
367
|
l.$arity = 1;
|
|
350
368
|
return l;
|
|
@@ -353,19 +371,19 @@
|
|
|
353
371
|
var tmp$ret$0;
|
|
354
372
|
// Inline function 'kotlin.getValue' call
|
|
355
373
|
var tmp0_getValue = logger$factory_0();
|
|
356
|
-
tmp$ret$0 = $this.
|
|
374
|
+
tmp$ret$0 = $this.e7w_1.n1();
|
|
357
375
|
return tmp$ret$0;
|
|
358
376
|
}
|
|
359
377
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
360
|
-
this.
|
|
378
|
+
this.g7w_1 = function_0;
|
|
361
379
|
}
|
|
362
380
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).iy = function (value, $completion) {
|
|
363
|
-
var tmp0 = this.
|
|
381
|
+
var tmp0 = this.g7w_1(value, $completion);
|
|
364
382
|
return tmp0;
|
|
365
383
|
};
|
|
366
384
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
367
|
-
this.
|
|
368
|
-
this.
|
|
385
|
+
this.p7w_1 = this$0;
|
|
386
|
+
this.q7w_1 = $subscriber;
|
|
369
387
|
CoroutineImpl.call(this, resultContinuation);
|
|
370
388
|
}
|
|
371
389
|
protoOf(GameServer$subscribeWith$slambda).c16 = function ($this$launchWorker, $completion) {
|
|
@@ -386,8 +404,8 @@
|
|
|
386
404
|
case 0:
|
|
387
405
|
this.wh_1 = 2;
|
|
388
406
|
this.vh_1 = 1;
|
|
389
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
390
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
407
|
+
var tmp_0 = distinctUntilChanged(this.p7w_1.f34());
|
|
408
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.q7w_1, null);
|
|
391
409
|
suspendResult = tmp_0.ux(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
392
410
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
393
411
|
return suspendResult;
|
|
@@ -411,8 +429,8 @@
|
|
|
411
429
|
while (true);
|
|
412
430
|
};
|
|
413
431
|
protoOf(GameServer$subscribeWith$slambda).d16 = function ($this$launchWorker, completion) {
|
|
414
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
415
|
-
i.
|
|
432
|
+
var i = new GameServer$subscribeWith$slambda(this.p7w_1, this.q7w_1, completion);
|
|
433
|
+
i.r7w_1 = $this$launchWorker;
|
|
416
434
|
return i;
|
|
417
435
|
};
|
|
418
436
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -424,7 +442,7 @@
|
|
|
424
442
|
return l;
|
|
425
443
|
}
|
|
426
444
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
427
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID,
|
|
445
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_getInstance_5().s7w()) : preloadedState;
|
|
428
446
|
var tmp;
|
|
429
447
|
if (externalReducers === VOID) {
|
|
430
448
|
var tmp$ret$0;
|
|
@@ -458,60 +476,60 @@
|
|
|
458
476
|
var tmp_2 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
459
477
|
tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
460
478
|
tmp$ret$3 = Instance(di, tmp$ret$2, null);
|
|
461
|
-
tmp_1.
|
|
479
|
+
tmp_1.e7w_1 = tmp$ret$3.x2n(this, logger$factory());
|
|
462
480
|
var tmp_3 = this;
|
|
463
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
464
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
465
|
-
tmp_3.
|
|
481
|
+
var tmp0_externalMiddlewares = plus(storeContract.a4r(), externalMiddlewares);
|
|
482
|
+
var tmp1_externalReducers = plus(storeContract.z4q(), externalReducers);
|
|
483
|
+
tmp_3.f7w_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
466
484
|
}
|
|
467
|
-
protoOf(GameServer).
|
|
468
|
-
return this.
|
|
485
|
+
protoOf(GameServer).p33 = function () {
|
|
486
|
+
return this.f7w_1;
|
|
469
487
|
};
|
|
470
|
-
protoOf(GameServer).
|
|
471
|
-
return this.zj().
|
|
488
|
+
protoOf(GameServer).j35 = function () {
|
|
489
|
+
return this.zj().k35().id;
|
|
472
490
|
};
|
|
473
|
-
protoOf(GameServer).
|
|
474
|
-
return this.zj().
|
|
491
|
+
protoOf(GameServer).k35 = function () {
|
|
492
|
+
return this.zj().k35();
|
|
475
493
|
};
|
|
476
|
-
protoOf(GameServer).
|
|
477
|
-
return this.zj().
|
|
494
|
+
protoOf(GameServer).l35 = function () {
|
|
495
|
+
return this.zj().l35();
|
|
478
496
|
};
|
|
479
|
-
protoOf(GameServer).
|
|
480
|
-
return this.zj().
|
|
497
|
+
protoOf(GameServer).m35 = function () {
|
|
498
|
+
return this.zj().i34_1;
|
|
481
499
|
};
|
|
482
500
|
protoOf(GameServer).subscribeWith = function (subscriber) {
|
|
483
|
-
var tmp = this.
|
|
484
|
-
tmp.
|
|
501
|
+
var tmp = this.n33();
|
|
502
|
+
tmp.u2w(VOID, GameServer$subscribeWith$slambda_0(this, subscriber, null));
|
|
485
503
|
};
|
|
486
504
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
487
505
|
_get_logger__rkp4sl(this).d(VOID, 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
488
|
-
this.
|
|
506
|
+
this.f7w_1.m2y().dispatch(action);
|
|
489
507
|
};
|
|
490
508
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
491
509
|
_get_logger__rkp4sl(this).d(VOID, 'playerLostConnection: ' + playerId);
|
|
492
|
-
var tmp = this.
|
|
510
|
+
var tmp = this.f7w_1.m2y().dispatch;
|
|
493
511
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
494
512
|
tmp(new PlayerConnectionUpdateAction(tmp0_connectionState, playerId));
|
|
495
513
|
};
|
|
496
514
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
497
515
|
_get_logger__rkp4sl(this).d(VOID, 'playerLive: ' + playerId);
|
|
498
|
-
var tmp = this.
|
|
516
|
+
var tmp = this.f7w_1.m2y().dispatch;
|
|
499
517
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
500
518
|
tmp(new PlayerConnectionUpdateAction(tmp0_connectionState, playerId));
|
|
501
519
|
};
|
|
502
520
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
503
521
|
_get_logger__rkp4sl(this).d(VOID, 'playerLeft: ' + playerId);
|
|
504
|
-
var tmp = this.
|
|
522
|
+
var tmp = this.f7w_1.m2y().dispatch;
|
|
505
523
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
506
524
|
tmp(new PlayerConnectionUpdateAction(tmp0_connectionState, playerId));
|
|
507
525
|
};
|
|
508
526
|
protoOf(GameServer).roomOnCreate = function (roomId, gameCreatorId, config, users) {
|
|
509
527
|
var usersList = toList(users);
|
|
510
528
|
var gameCreatorUser = getPlayer(usersList, gameCreatorId);
|
|
511
|
-
this.
|
|
529
|
+
this.f7w_1.m2y().dispatch(new RoomWasCreatedAction(roomId, gameCreatorId, config, sortWithItem(usersList, gameCreatorUser)));
|
|
512
530
|
};
|
|
513
531
|
protoOf(GameServer).roomOnDelete = function () {
|
|
514
|
-
this.
|
|
532
|
+
this.f7w_1.m2y().dispatch(RoomWasDeletedAction_getInstance());
|
|
515
533
|
};
|
|
516
534
|
protoOf(GameServer).clear = function () {
|
|
517
535
|
protoOf(BaseGame).z2.call(this);
|
|
@@ -520,13 +538,13 @@
|
|
|
520
538
|
return this.clear();
|
|
521
539
|
};
|
|
522
540
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
523
|
-
this.
|
|
541
|
+
this.f7w_1.m2y().dispatch(new UpdateServerConfigAction(get_serverState(this.f7w_1.m2y().state).t7w_1.v7w(enabled)));
|
|
524
542
|
};
|
|
525
543
|
protoOf(GameServer).shutdown = function (reason) {
|
|
526
|
-
if (this.
|
|
544
|
+
if (this.f7w_1.m2y().state.l35()) {
|
|
527
545
|
var tmp0_elvis_lhs = toDomainEnumSafe(reason, get_serverShutdownReasonMapping());
|
|
528
546
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
529
|
-
var tmp = this.
|
|
547
|
+
var tmp = this.f7w_1.m2y().dispatch;
|
|
530
548
|
var tmp1_subject = shutdownReason;
|
|
531
549
|
var tmp0 = tmp1_subject.s5_1;
|
|
532
550
|
var tmp_0;
|
|
@@ -544,20 +562,20 @@
|
|
|
544
562
|
tmp(new FinishingGameMechanicAction(tmp_0));
|
|
545
563
|
} else {
|
|
546
564
|
_get_logger__rkp4sl(this).w(VOID, "GameServer: can't shutdown engine without table");
|
|
547
|
-
this.
|
|
565
|
+
this.f7w_1.m2y().dispatch(ClearAction_getInstance());
|
|
548
566
|
}
|
|
549
567
|
};
|
|
550
568
|
defineProp(protoOf(GameServer), 'id', function () {
|
|
551
|
-
return this.
|
|
569
|
+
return this.j35();
|
|
552
570
|
});
|
|
553
571
|
defineProp(protoOf(GameServer), 'table', function () {
|
|
554
|
-
return this.
|
|
572
|
+
return this.k35();
|
|
555
573
|
});
|
|
556
574
|
defineProp(protoOf(GameServer), 'isTableExists', function () {
|
|
557
|
-
return this.
|
|
575
|
+
return this.l35();
|
|
558
576
|
});
|
|
559
577
|
defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
|
|
560
|
-
return this.
|
|
578
|
+
return this.m35();
|
|
561
579
|
});
|
|
562
580
|
function logger$factory() {
|
|
563
581
|
return getPropertyCallableRef('logger', 1, KProperty1, function (receiver) {
|
|
@@ -603,23 +621,23 @@
|
|
|
603
621
|
tmp_0 = delayToAskBotMillis;
|
|
604
622
|
}
|
|
605
623
|
delayToAskBotMillis = tmp_0;
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
624
|
+
this.w7w_1 = finishGameIfAllBots;
|
|
625
|
+
this.x7w_1 = waitForPlayerToReconnect;
|
|
626
|
+
this.y7w_1 = waitForPlayerToReconnectTimeOutMillis;
|
|
627
|
+
this.z7w_1 = closeIfBotsAtFinish;
|
|
628
|
+
this.a7x_1 = botReplacesPlayerAfterTimeout;
|
|
629
|
+
this.b7x_1 = delayToAskBotMillis;
|
|
612
630
|
}
|
|
613
631
|
protoOf(ServerReduxConfig).toString = function () {
|
|
614
|
-
return 'ServerReduxConfig(finishGameIfAllBots=' + this.
|
|
632
|
+
return 'ServerReduxConfig(finishGameIfAllBots=' + this.w7w_1 + ', waitForPlayerToReconnect=' + this.x7w_1 + ', waitForPlayerToReconnectTimeOutMillis=' + toString(this.y7w_1) + ', closeIfBotsAtFinish=' + this.z7w_1 + ', botReplacesPlayerAfterTimeout=' + this.a7x_1 + ', delayToAskBotMillis=' + toString(this.b7x_1) + ')';
|
|
615
633
|
};
|
|
616
634
|
protoOf(ServerReduxConfig).hashCode = function () {
|
|
617
|
-
var result = this.
|
|
618
|
-
result = imul(result, 31) + (this.
|
|
619
|
-
result = imul(result, 31) + this.
|
|
620
|
-
result = imul(result, 31) + (this.
|
|
621
|
-
result = imul(result, 31) + (this.
|
|
622
|
-
result = imul(result, 31) + this.
|
|
635
|
+
var result = this.w7w_1 | 0;
|
|
636
|
+
result = imul(result, 31) + (this.x7w_1 | 0) | 0;
|
|
637
|
+
result = imul(result, 31) + this.y7w_1.hashCode() | 0;
|
|
638
|
+
result = imul(result, 31) + (this.z7w_1 | 0) | 0;
|
|
639
|
+
result = imul(result, 31) + (this.a7x_1 | 0) | 0;
|
|
640
|
+
result = imul(result, 31) + this.b7x_1.hashCode() | 0;
|
|
623
641
|
return result;
|
|
624
642
|
};
|
|
625
643
|
protoOf(ServerReduxConfig).equals = function (other) {
|
|
@@ -628,17 +646,17 @@
|
|
|
628
646
|
if (!(other instanceof ServerReduxConfig))
|
|
629
647
|
return false;
|
|
630
648
|
var tmp0_other_with_cast = other instanceof ServerReduxConfig ? other : THROW_CCE();
|
|
631
|
-
if (!(this.
|
|
649
|
+
if (!(this.w7w_1 === tmp0_other_with_cast.w7w_1))
|
|
632
650
|
return false;
|
|
633
|
-
if (!(this.
|
|
651
|
+
if (!(this.x7w_1 === tmp0_other_with_cast.x7w_1))
|
|
634
652
|
return false;
|
|
635
|
-
if (!this.
|
|
653
|
+
if (!this.y7w_1.equals(tmp0_other_with_cast.y7w_1))
|
|
636
654
|
return false;
|
|
637
|
-
if (!(this.
|
|
655
|
+
if (!(this.z7w_1 === tmp0_other_with_cast.z7w_1))
|
|
638
656
|
return false;
|
|
639
|
-
if (!(this.
|
|
657
|
+
if (!(this.a7x_1 === tmp0_other_with_cast.a7x_1))
|
|
640
658
|
return false;
|
|
641
|
-
if (!this.
|
|
659
|
+
if (!this.b7x_1.equals(tmp0_other_with_cast.b7x_1))
|
|
642
660
|
return false;
|
|
643
661
|
return true;
|
|
644
662
|
};
|
|
@@ -670,16 +688,16 @@
|
|
|
670
688
|
return tmp instanceof ServerUserPayload ? tmp : THROW_CCE();
|
|
671
689
|
}
|
|
672
690
|
function ServerConfig(canStartNewGame) {
|
|
673
|
-
this.
|
|
691
|
+
this.u7w_1 = canStartNewGame;
|
|
674
692
|
}
|
|
675
|
-
protoOf(ServerConfig).
|
|
693
|
+
protoOf(ServerConfig).v7w = function (canStartNewGame) {
|
|
676
694
|
return new ServerConfig(canStartNewGame);
|
|
677
695
|
};
|
|
678
696
|
protoOf(ServerConfig).toString = function () {
|
|
679
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
697
|
+
return 'ServerConfig(canStartNewGame=' + this.u7w_1 + ')';
|
|
680
698
|
};
|
|
681
699
|
protoOf(ServerConfig).hashCode = function () {
|
|
682
|
-
return this.
|
|
700
|
+
return this.u7w_1 | 0;
|
|
683
701
|
};
|
|
684
702
|
protoOf(ServerConfig).equals = function (other) {
|
|
685
703
|
if (this === other)
|
|
@@ -687,7 +705,7 @@
|
|
|
687
705
|
if (!(other instanceof ServerConfig))
|
|
688
706
|
return false;
|
|
689
707
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
690
|
-
if (!(this.
|
|
708
|
+
if (!(this.u7w_1 === tmp0_other_with_cast.u7w_1))
|
|
691
709
|
return false;
|
|
692
710
|
return true;
|
|
693
711
|
};
|
|
@@ -705,19 +723,19 @@
|
|
|
705
723
|
};
|
|
706
724
|
}
|
|
707
725
|
function createGameServerDI$lambda$lambda_0($this$singleton) {
|
|
708
|
-
return new ServerGameStoreContract($this$singleton.
|
|
726
|
+
return new ServerGameStoreContract($this$singleton.n2i());
|
|
709
727
|
}
|
|
710
728
|
function createGameServerDI$lambda$lambda_1($externalReducers, $externalMiddlewares) {
|
|
711
729
|
return function ($this$singleton) {
|
|
712
|
-
var tmp = $this$singleton.
|
|
730
|
+
var tmp = $this$singleton.n2i();
|
|
713
731
|
var tmp$ret$1;
|
|
714
732
|
// Inline function 'org.kodein.di.instance' call
|
|
715
|
-
var tmp_0 = $this$singleton.
|
|
733
|
+
var tmp_0 = $this$singleton.p2j();
|
|
716
734
|
var tmp$ret$0;
|
|
717
735
|
// Inline function 'org.kodein.type.generic' call
|
|
718
736
|
var tmp_1 = typeToken(createKType(getKClass(StoreContract), arrayOf([]), false));
|
|
719
737
|
tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
|
|
720
|
-
tmp$ret$1 = tmp_0.
|
|
738
|
+
tmp$ret$1 = tmp_0.q2j(tmp$ret$0, null);
|
|
721
739
|
return new GameServer(tmp, 'Game server', tmp$ret$1, VOID, $externalReducers, $externalMiddlewares);
|
|
722
740
|
};
|
|
723
741
|
}
|
|
@@ -729,159 +747,159 @@
|
|
|
729
747
|
// Inline function 'org.kodein.type.generic' call
|
|
730
748
|
var tmp = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
731
749
|
tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
732
|
-
tmp$ret$1 = $this$$receiver.
|
|
750
|
+
tmp$ret$1 = $this$$receiver.g2i(tmp$ret$0, null, null);
|
|
733
751
|
var tmp_0 = tmp$ret$1;
|
|
734
752
|
var tmp$ret$3;
|
|
735
753
|
// Inline function 'org.kodein.di.singleton' call
|
|
736
754
|
var tmp0_singleton = createGameServerDI$lambda$lambda($serverConfig);
|
|
737
|
-
var tmp_1 = $this$$receiver.
|
|
738
|
-
var tmp_2 = $this$$receiver.
|
|
739
|
-
var tmp_3 = $this$$receiver.
|
|
755
|
+
var tmp_1 = $this$$receiver.w2j();
|
|
756
|
+
var tmp_2 = $this$$receiver.x2j();
|
|
757
|
+
var tmp_3 = $this$$receiver.v2l();
|
|
740
758
|
var tmp$ret$2;
|
|
741
759
|
// Inline function 'org.kodein.type.generic' call
|
|
742
760
|
var tmp_4 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
743
761
|
tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
744
762
|
tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, tmp0_singleton);
|
|
745
|
-
tmp_0.
|
|
746
|
-
$this$$receiver.
|
|
763
|
+
tmp_0.a2m(tmp$ret$3);
|
|
764
|
+
$this$$receiver.i2i(getServerEngineGameDI($botConfig, $logicConfig));
|
|
747
765
|
var tmp$ret$5;
|
|
748
766
|
// Inline function 'org.kodein.di.bind' call
|
|
749
767
|
var tmp$ret$4;
|
|
750
768
|
// Inline function 'org.kodein.type.generic' call
|
|
751
769
|
var tmp_5 = typeToken(createKType(getKClass(StoreContract), arrayOf([]), false));
|
|
752
770
|
tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
753
|
-
tmp$ret$5 = $this$$receiver.
|
|
771
|
+
tmp$ret$5 = $this$$receiver.g2i(tmp$ret$4, null, null);
|
|
754
772
|
var tmp_6 = tmp$ret$5;
|
|
755
773
|
var tmp$ret$7;
|
|
756
774
|
// Inline function 'org.kodein.di.singleton' call
|
|
757
775
|
var tmp1_singleton = createGameServerDI$lambda$lambda_0;
|
|
758
|
-
var tmp_7 = $this$$receiver.
|
|
759
|
-
var tmp_8 = $this$$receiver.
|
|
760
|
-
var tmp_9 = $this$$receiver.
|
|
776
|
+
var tmp_7 = $this$$receiver.w2j();
|
|
777
|
+
var tmp_8 = $this$$receiver.x2j();
|
|
778
|
+
var tmp_9 = $this$$receiver.v2l();
|
|
761
779
|
var tmp$ret$6;
|
|
762
780
|
// Inline function 'org.kodein.type.generic' call
|
|
763
781
|
var tmp_10 = typeToken(createKType(getKClass(ServerGameStoreContract), arrayOf([]), false));
|
|
764
782
|
tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
765
783
|
tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, tmp1_singleton);
|
|
766
|
-
tmp_6.
|
|
784
|
+
tmp_6.a2m(tmp$ret$7);
|
|
767
785
|
var tmp$ret$9;
|
|
768
786
|
// Inline function 'org.kodein.di.bind' call
|
|
769
787
|
var tmp$ret$8;
|
|
770
788
|
// Inline function 'org.kodein.type.generic' call
|
|
771
789
|
var tmp_11 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
772
790
|
tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
|
|
773
|
-
tmp$ret$9 = $this$$receiver.
|
|
791
|
+
tmp$ret$9 = $this$$receiver.g2i(tmp$ret$8, null, null);
|
|
774
792
|
var tmp_12 = tmp$ret$9;
|
|
775
793
|
var tmp$ret$11;
|
|
776
794
|
// Inline function 'org.kodein.di.singleton' call
|
|
777
795
|
var tmp2_singleton = createGameServerDI$lambda$lambda_1($externalReducers, $externalMiddlewares);
|
|
778
|
-
var tmp_13 = $this$$receiver.
|
|
779
|
-
var tmp_14 = $this$$receiver.
|
|
780
|
-
var tmp_15 = $this$$receiver.
|
|
796
|
+
var tmp_13 = $this$$receiver.w2j();
|
|
797
|
+
var tmp_14 = $this$$receiver.x2j();
|
|
798
|
+
var tmp_15 = $this$$receiver.v2l();
|
|
781
799
|
var tmp$ret$10;
|
|
782
800
|
// Inline function 'org.kodein.type.generic' call
|
|
783
801
|
var tmp_16 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
784
802
|
tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
785
803
|
tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, tmp2_singleton);
|
|
786
|
-
tmp_12.
|
|
804
|
+
tmp_12.a2m(tmp$ret$11);
|
|
787
805
|
return Unit_getInstance();
|
|
788
806
|
};
|
|
789
807
|
}
|
|
790
808
|
function getServerEngineGameDI$lambda$lambda($this$provider) {
|
|
791
809
|
var tmp$ret$1;
|
|
792
810
|
// Inline function 'org.kodein.di.instance' call
|
|
793
|
-
var tmp = $this$provider.
|
|
811
|
+
var tmp = $this$provider.p2j();
|
|
794
812
|
var tmp$ret$0;
|
|
795
813
|
// Inline function 'org.kodein.type.generic' call
|
|
796
814
|
var tmp_0 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
797
815
|
tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
798
|
-
tmp$ret$1 = tmp.
|
|
816
|
+
tmp$ret$1 = tmp.q2j(tmp$ret$0, null);
|
|
799
817
|
var tmp_1 = tmp$ret$1;
|
|
800
818
|
var tmp$ret$3;
|
|
801
819
|
// Inline function 'org.kodein.di.instance' call
|
|
802
|
-
var tmp_2 = $this$provider.
|
|
820
|
+
var tmp_2 = $this$provider.p2j();
|
|
803
821
|
var tmp$ret$2;
|
|
804
822
|
// Inline function 'org.kodein.type.generic' call
|
|
805
823
|
var tmp_3 = typeToken(createKType(getKClass(TableLifecycleReducer), arrayOf([]), false));
|
|
806
824
|
tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
807
|
-
tmp$ret$3 = tmp_2.
|
|
825
|
+
tmp$ret$3 = tmp_2.q2j(tmp$ret$2, null);
|
|
808
826
|
return new ServerMechanicLifecycleReducer(tmp_1, tmp$ret$3);
|
|
809
827
|
}
|
|
810
828
|
function getServerEngineGameDI$lambda$lambda_0($this$provider) {
|
|
811
829
|
var tmp$ret$1;
|
|
812
830
|
// Inline function 'org.kodein.di.instance' call
|
|
813
|
-
var tmp = $this$provider.
|
|
831
|
+
var tmp = $this$provider.p2j();
|
|
814
832
|
var tmp$ret$0;
|
|
815
833
|
// Inline function 'org.kodein.type.generic' call
|
|
816
834
|
var tmp_0 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
817
835
|
tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
818
|
-
tmp$ret$1 = tmp.
|
|
836
|
+
tmp$ret$1 = tmp.q2j(tmp$ret$0, null);
|
|
819
837
|
var tmp_1 = tmp$ret$1;
|
|
820
838
|
var tmp$ret$3;
|
|
821
839
|
// Inline function 'org.kodein.di.instance' call
|
|
822
|
-
var tmp_2 = $this$provider.
|
|
840
|
+
var tmp_2 = $this$provider.p2j();
|
|
823
841
|
var tmp$ret$2;
|
|
824
842
|
// Inline function 'org.kodein.type.generic' call
|
|
825
843
|
var tmp_3 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
826
844
|
tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
827
|
-
tmp$ret$3 = tmp_2.
|
|
845
|
+
tmp$ret$3 = tmp_2.q2j(tmp$ret$2, null);
|
|
828
846
|
return new ReconnectionInteractor(tmp_1, tmp$ret$3);
|
|
829
847
|
}
|
|
830
848
|
function getServerEngineGameDI$lambda($botReduxConfig, $logicReduxConfig) {
|
|
831
849
|
return function ($this$$receiver) {
|
|
832
|
-
$this$$receiver.
|
|
833
|
-
$this$$receiver.
|
|
850
|
+
$this$$receiver.i2i(jsonModule(emptyList()));
|
|
851
|
+
$this$$receiver.i2i(getEngineGameModule($botReduxConfig, $logicReduxConfig));
|
|
834
852
|
var tmp$ret$1;
|
|
835
853
|
// Inline function 'org.kodein.di.bind' call
|
|
836
854
|
var tmp$ret$0;
|
|
837
855
|
// Inline function 'org.kodein.type.generic' call
|
|
838
856
|
var tmp = typeToken(createKType(getKClass(MechanicLifecycleReducer), arrayOf([]), false));
|
|
839
857
|
tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
840
|
-
tmp$ret$1 = $this$$receiver.
|
|
858
|
+
tmp$ret$1 = $this$$receiver.g2i(tmp$ret$0, null, null);
|
|
841
859
|
var tmp_0 = tmp$ret$1;
|
|
842
860
|
var tmp$ret$3;
|
|
843
861
|
// Inline function 'org.kodein.di.provider' call
|
|
844
862
|
var tmp0_provider = getServerEngineGameDI$lambda$lambda;
|
|
845
|
-
var tmp_1 = $this$$receiver.
|
|
863
|
+
var tmp_1 = $this$$receiver.x2j();
|
|
846
864
|
var tmp$ret$2;
|
|
847
865
|
// Inline function 'org.kodein.type.generic' call
|
|
848
866
|
var tmp_2 = typeToken(createKType(getKClass(ServerMechanicLifecycleReducer), arrayOf([]), false));
|
|
849
867
|
tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
850
868
|
tmp$ret$3 = new Provider(tmp_1, tmp$ret$2, tmp0_provider);
|
|
851
|
-
tmp_0.
|
|
869
|
+
tmp_0.a2m(tmp$ret$3);
|
|
852
870
|
var tmp$ret$5;
|
|
853
871
|
// Inline function 'org.kodein.di.bind' call
|
|
854
872
|
var tmp$ret$4;
|
|
855
873
|
// Inline function 'org.kodein.type.generic' call
|
|
856
874
|
var tmp_3 = typeToken(createKType(getKClass(ReconnectionInteractor), arrayOf([]), false));
|
|
857
875
|
tmp$ret$4 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
858
|
-
tmp$ret$5 = $this$$receiver.
|
|
876
|
+
tmp$ret$5 = $this$$receiver.g2i(tmp$ret$4, null, null);
|
|
859
877
|
var tmp_4 = tmp$ret$5;
|
|
860
878
|
var tmp$ret$7;
|
|
861
879
|
// Inline function 'org.kodein.di.provider' call
|
|
862
880
|
var tmp1_provider = getServerEngineGameDI$lambda$lambda_0;
|
|
863
|
-
var tmp_5 = $this$$receiver.
|
|
881
|
+
var tmp_5 = $this$$receiver.x2j();
|
|
864
882
|
var tmp$ret$6;
|
|
865
883
|
// Inline function 'org.kodein.type.generic' call
|
|
866
884
|
var tmp_6 = typeToken(createKType(getKClass(ReconnectionInteractor), arrayOf([]), false));
|
|
867
885
|
tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
868
886
|
tmp$ret$7 = new Provider(tmp_5, tmp$ret$6, tmp1_provider);
|
|
869
|
-
tmp_4.
|
|
887
|
+
tmp_4.a2m(tmp$ret$7);
|
|
870
888
|
return Unit_getInstance();
|
|
871
889
|
};
|
|
872
890
|
}
|
|
873
891
|
function ServerGameEngineContract() {
|
|
874
892
|
}
|
|
875
893
|
function waitPlayerOrDisconnect($this, connectionState, table, player, waitForPlayer, sendFinishToClientActions) {
|
|
876
|
-
if ($this.
|
|
894
|
+
if ($this.c7x_1.x7w_1 ? waitForPlayer : false) {
|
|
877
895
|
var tmp0_roomId = table.id;
|
|
878
896
|
var tmp1_players = table.playersConnections;
|
|
879
897
|
return getWaitingPlayerActions($this, tmp0_roomId, connectionState, player, tmp1_players, sendFinishToClientActions);
|
|
880
898
|
}
|
|
881
|
-
var isLivePlayersExists_0 = isLivePlayersExists($this, player.
|
|
882
|
-
var canRemoveGameWhenNoPlayers = $this.
|
|
899
|
+
var isLivePlayersExists_0 = isLivePlayersExists($this, player.m2p(), table.players);
|
|
900
|
+
var canRemoveGameWhenNoPlayers = $this.c7x_1.w7w_1 ? !isLivePlayersExists_0 : false;
|
|
883
901
|
var tmp;
|
|
884
|
-
if (canRemoveGameWhenNoPlayers ? true : !$this.
|
|
902
|
+
if (canRemoveGameWhenNoPlayers ? true : !$this.c7x_1.a7x_1) {
|
|
885
903
|
tmp = listOf(getFinishingAction($this, connectionState, player, table.playersConnections));
|
|
886
904
|
} else {
|
|
887
905
|
tmp = getPlayerDisconnectedActions($this, connectionState, table.id, player, table.playersConnections, sendFinishToClientActions);
|
|
@@ -906,7 +924,7 @@
|
|
|
906
924
|
var element = tmp0_iterator.h();
|
|
907
925
|
var tmp$ret$0;
|
|
908
926
|
// Inline function 'com.debertz.logic.server.domain.reconnection.ReconnectionInteractor.isLivePlayersExists.<anonymous>' call
|
|
909
|
-
tmp$ret$0 = element.
|
|
927
|
+
tmp$ret$0 = element.m2p() === exceptPlayerId;
|
|
910
928
|
if (!tmp$ret$0) {
|
|
911
929
|
tmp0_filterNotTo.a(element);
|
|
912
930
|
}
|
|
@@ -929,7 +947,7 @@
|
|
|
929
947
|
var element_0 = tmp0_iterator_0.h();
|
|
930
948
|
var tmp$ret$4;
|
|
931
949
|
// Inline function 'com.debertz.logic.server.domain.reconnection.ReconnectionInteractor.isLivePlayersExists.<anonymous>' call
|
|
932
|
-
tmp$ret$4 = element_0.
|
|
950
|
+
tmp$ret$4 = element_0.c39_1.r2q_1.isLive;
|
|
933
951
|
if (tmp$ret$4) {
|
|
934
952
|
tmp$ret$3 = true;
|
|
935
953
|
break $l$block_0;
|
|
@@ -938,7 +956,7 @@
|
|
|
938
956
|
tmp$ret$3 = false;
|
|
939
957
|
}
|
|
940
958
|
var isLivePlayersExists = tmp$ret$3;
|
|
941
|
-
var tmp_0 = 'finishGameIfAllBots: ' + $this.
|
|
959
|
+
var tmp_0 = 'finishGameIfAllBots: ' + $this.c7x_1.w7w_1 + ', ';
|
|
942
960
|
var tmp$ret$7;
|
|
943
961
|
// Inline function 'kotlin.collections.map' call
|
|
944
962
|
var tmp$ret$6;
|
|
@@ -949,12 +967,12 @@
|
|
|
949
967
|
var item = tmp0_iterator_1.h();
|
|
950
968
|
var tmp$ret$5;
|
|
951
969
|
// Inline function 'com.debertz.logic.server.domain.reconnection.ReconnectionInteractor.isLivePlayersExists.<anonymous>' call
|
|
952
|
-
tmp$ret$5 = to(item.
|
|
970
|
+
tmp$ret$5 = to(item.m2p(), item.c39_1.r2q_1.r5_1);
|
|
953
971
|
tmp2_mapTo.a(tmp$ret$5);
|
|
954
972
|
}
|
|
955
973
|
tmp$ret$6 = tmp2_mapTo;
|
|
956
974
|
tmp$ret$7 = tmp$ret$6;
|
|
957
|
-
$this.
|
|
975
|
+
$this.d7x_1.d('ReconnectionInteractor', tmp_0 + ('isLivePlayersExists: ' + isLivePlayersExists + ', ' + tmp$ret$7));
|
|
958
976
|
return isLivePlayersExists;
|
|
959
977
|
}
|
|
960
978
|
function getPlayerConnectedActions($this, player, table) {
|
|
@@ -963,8 +981,8 @@
|
|
|
963
981
|
tmp$ret$0 = ArrayList_init_$Create$();
|
|
964
982
|
var actionsList = tmp$ret$0;
|
|
965
983
|
actionsList.j(listOf(getContinueAction($this, player, table)));
|
|
966
|
-
if (player.
|
|
967
|
-
actionsList.j(listOf_0([new StopTimerAction(new PlayerTurnTimerTag(player.
|
|
984
|
+
if (player.c39_1.t2q()) {
|
|
985
|
+
actionsList.j(listOf_0([new StopTimerAction(new PlayerTurnTimerTag(player.m2p(), player.c39_1.f2r())), new StartTimerAction(new PlayerTurnTimerTag(player.m2p(), player.c39_1.f2r(), true), getContinuePlayerTurnTimerDelayMillis(player, $this.d7x_1), VOID, TimerType_DELAY_getInstance())]));
|
|
968
986
|
}
|
|
969
987
|
return actionsList;
|
|
970
988
|
}
|
|
@@ -976,23 +994,23 @@
|
|
|
976
994
|
if (finishToClientActions) {
|
|
977
995
|
actionsList.j(getFinishToClientActions($this, player, roomId, mapToFinishReason(connectionState, player, players)));
|
|
978
996
|
}
|
|
979
|
-
actionsList.a(new PlayerConnectionChangedMechanicAction(player.
|
|
980
|
-
if (player.
|
|
981
|
-
actionsList.a(new AskBotAction(player.
|
|
997
|
+
actionsList.a(new PlayerConnectionChangedMechanicAction(player.m2p(), connectionState));
|
|
998
|
+
if (player.c39_1.t2q()) {
|
|
999
|
+
actionsList.a(new AskBotAction(player.m2p(), 'PlayerTurn when connection changed'));
|
|
982
1000
|
}
|
|
983
1001
|
return actionsList;
|
|
984
1002
|
}
|
|
985
1003
|
function getFinishToClientActions($this, sendToPlayer, roomId, reason) {
|
|
986
|
-
if (!sendToPlayer.
|
|
1004
|
+
if (!sendToPlayer.c39_1.r2q_1.isLive) {
|
|
987
1005
|
return emptyList();
|
|
988
1006
|
}
|
|
989
|
-
return listOf_0([new FinishingGameToClientAction(Companion_getInstance_0().user(roomId, sendToPlayer.
|
|
1007
|
+
return listOf_0([new FinishingGameToClientAction(Companion_getInstance_0().user(roomId, sendToPlayer.m2p()), reason), new FinishGameToClientAction(Companion_getInstance_0().user(roomId, sendToPlayer.m2p()), reason)]);
|
|
990
1008
|
}
|
|
991
1009
|
function getContinueAction($this, sendToPlayer, table) {
|
|
992
|
-
var tmp = Companion_getInstance_0().user(table.id, sendToPlayer.
|
|
993
|
-
var
|
|
994
|
-
var
|
|
995
|
-
var
|
|
1010
|
+
var tmp = Companion_getInstance_0().user(table.id, sendToPlayer.m2p());
|
|
1011
|
+
var tmp0_playerId = sendToPlayer.m2p();
|
|
1012
|
+
var tmp1_gameCreatorPlayerId = getGameCreator(table.players).m2p();
|
|
1013
|
+
var tmp2_roomId = table.id;
|
|
996
1014
|
var tmp$ret$2;
|
|
997
1015
|
// Inline function 'kotlin.collections.map' call
|
|
998
1016
|
var tmp1_map = table.players;
|
|
@@ -1004,12 +1022,13 @@
|
|
|
1004
1022
|
var item = tmp0_iterator.h();
|
|
1005
1023
|
var tmp$ret$0;
|
|
1006
1024
|
// Inline function 'com.debertz.logic.server.domain.reconnection.ReconnectionInteractor.getContinueAction.<anonymous>' call
|
|
1007
|
-
tmp$ret$0 = item.
|
|
1025
|
+
tmp$ret$0 = item.m2p();
|
|
1008
1026
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1009
1027
|
}
|
|
1010
1028
|
tmp$ret$1 = tmp0_mapTo;
|
|
1011
1029
|
tmp$ret$2 = tmp$ret$1;
|
|
1012
|
-
|
|
1030
|
+
var tmp3_playersIds = tmp$ret$2;
|
|
1031
|
+
return new ContinueGameToClientAction(tmp, mapToClient(table, UserActionPayload_init_$Create$(tmp2_roomId, tmp1_gameCreatorPlayerId, tmp0_playerId, tmp3_playersIds)), new PlayerReturnsReason(sendToPlayer.m2p()), null);
|
|
1013
1032
|
}
|
|
1014
1033
|
function getFinishingAction($this, state, player, players) {
|
|
1015
1034
|
return new FinishingGameMechanicAction(mapToFinishReason(state, player, players));
|
|
@@ -1022,21 +1041,21 @@
|
|
|
1022
1041
|
if (finishToClientActions) {
|
|
1023
1042
|
actionsList.j(getFinishToClientActions($this, player, roomId, mapToFinishReason(connectionState, player, players)));
|
|
1024
1043
|
}
|
|
1025
|
-
var tmp = System_getInstance().
|
|
1044
|
+
var tmp = System_getInstance().z2n();
|
|
1026
1045
|
var tmp$ret$1;
|
|
1027
1046
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
1028
|
-
var tmp0__get_milliseconds__kazo1t =
|
|
1029
|
-
var tmp1__get_milliseconds__r2e6ua = $this.
|
|
1047
|
+
var tmp0__get_milliseconds__kazo1t = Companion_getInstance_1();
|
|
1048
|
+
var tmp1__get_milliseconds__r2e6ua = $this.c7x_1.y7w_1;
|
|
1030
1049
|
tmp$ret$1 = toDuration(tmp1__get_milliseconds__r2e6ua, DurationUnit_MILLISECONDS_getInstance());
|
|
1031
|
-
var reconnectUntilTime = tmp.
|
|
1032
|
-
actionsList.j(listOf_0([new PlayerConnectionChangedMechanicAction(player.
|
|
1050
|
+
var reconnectUntilTime = tmp.n2o(tmp$ret$1);
|
|
1051
|
+
actionsList.j(listOf_0([new PlayerConnectionChangedMechanicAction(player.m2p(), PlayerConnectionState_DISCONNECTING_getInstance(), false, reconnectUntilTime.toString()), new StartTimerAction(new PlayerReconnectionWaitingTimerTag(player.m2p(), connectionState), $this.c7x_1.y7w_1, VOID, TimerType_DELAY_getInstance())]));
|
|
1033
1052
|
return actionsList;
|
|
1034
1053
|
}
|
|
1035
1054
|
function ReconnectionInteractor(serverConfig, logger) {
|
|
1036
|
-
this.
|
|
1037
|
-
this.
|
|
1055
|
+
this.c7x_1 = serverConfig;
|
|
1056
|
+
this.d7x_1 = logger;
|
|
1038
1057
|
}
|
|
1039
|
-
protoOf(ReconnectionInteractor).
|
|
1058
|
+
protoOf(ReconnectionInteractor).e7x = function (newConnectionState, playerId, table, afterReconnection) {
|
|
1040
1059
|
var player = getPlayer(table.players, playerId);
|
|
1041
1060
|
var tmp0_subject = newConnectionState;
|
|
1042
1061
|
var tmp0 = tmp0_subject.s5_1;
|
|
@@ -1046,9 +1065,9 @@
|
|
|
1046
1065
|
tmp = getPlayerConnectedActions(this, player, table);
|
|
1047
1066
|
break;
|
|
1048
1067
|
case 3:
|
|
1049
|
-
var isLivePlayersExists_0 = isLivePlayersExists(this, player.
|
|
1050
|
-
var canRemoveGameWhenNoPlayers = this.
|
|
1051
|
-
var canRemoveGameWhenGameFinished = table.sceneInfo.
|
|
1068
|
+
var isLivePlayersExists_0 = isLivePlayersExists(this, player.m2p(), table.players);
|
|
1069
|
+
var canRemoveGameWhenNoPlayers = this.c7x_1.w7w_1 ? !isLivePlayersExists_0 : false;
|
|
1070
|
+
var canRemoveGameWhenGameFinished = table.sceneInfo.c4e() ? this.c7x_1.w7w_1 : false;
|
|
1052
1071
|
var tmp_0;
|
|
1053
1072
|
if (canRemoveGameWhenNoPlayers ? true : canRemoveGameWhenGameFinished) {
|
|
1054
1073
|
tmp_0 = listOf(getFinishingAction(this, newConnectionState, player, table.playersConnections));
|
|
@@ -1079,13 +1098,13 @@
|
|
|
1079
1098
|
return tmp;
|
|
1080
1099
|
};
|
|
1081
1100
|
function UpdateServerConfigAction(serverConfig) {
|
|
1082
|
-
this.
|
|
1101
|
+
this.f7x_1 = serverConfig;
|
|
1083
1102
|
}
|
|
1084
1103
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
1085
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
1104
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.f7x_1 + ')';
|
|
1086
1105
|
};
|
|
1087
1106
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
1088
|
-
return this.
|
|
1107
|
+
return this.f7x_1.hashCode();
|
|
1089
1108
|
};
|
|
1090
1109
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
1091
1110
|
if (this === other)
|
|
@@ -1093,28 +1112,28 @@
|
|
|
1093
1112
|
if (!(other instanceof UpdateServerConfigAction))
|
|
1094
1113
|
return false;
|
|
1095
1114
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
1096
|
-
if (!this.
|
|
1115
|
+
if (!this.f7x_1.equals(tmp0_other_with_cast.f7x_1))
|
|
1097
1116
|
return false;
|
|
1098
1117
|
return true;
|
|
1099
1118
|
};
|
|
1100
1119
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|
|
1101
|
-
return this.
|
|
1120
|
+
return this.g2t();
|
|
1102
1121
|
});
|
|
1103
1122
|
function RoomWasCreatedAction(roomId, gameCreatorPlayerId, config, users) {
|
|
1104
1123
|
RoomAction.call(this);
|
|
1105
|
-
this.
|
|
1106
|
-
this.
|
|
1107
|
-
this.
|
|
1108
|
-
this.
|
|
1124
|
+
this.g7x_1 = roomId;
|
|
1125
|
+
this.h7x_1 = gameCreatorPlayerId;
|
|
1126
|
+
this.i7x_1 = config;
|
|
1127
|
+
this.j7x_1 = users;
|
|
1109
1128
|
}
|
|
1110
1129
|
protoOf(RoomWasCreatedAction).toString = function () {
|
|
1111
|
-
return 'RoomWasCreatedAction(roomId=' + this.
|
|
1130
|
+
return 'RoomWasCreatedAction(roomId=' + this.g7x_1 + ', gameCreatorPlayerId=' + this.h7x_1 + ', config=' + this.i7x_1 + ', users=' + this.j7x_1 + ')';
|
|
1112
1131
|
};
|
|
1113
1132
|
protoOf(RoomWasCreatedAction).hashCode = function () {
|
|
1114
|
-
var result = getStringHashCode(this.
|
|
1115
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1116
|
-
result = imul(result, 31) + this.
|
|
1117
|
-
result = imul(result, 31) + hashCode(this.
|
|
1133
|
+
var result = getStringHashCode(this.g7x_1);
|
|
1134
|
+
result = imul(result, 31) + getStringHashCode(this.h7x_1) | 0;
|
|
1135
|
+
result = imul(result, 31) + this.i7x_1.hashCode() | 0;
|
|
1136
|
+
result = imul(result, 31) + hashCode(this.j7x_1) | 0;
|
|
1118
1137
|
return result;
|
|
1119
1138
|
};
|
|
1120
1139
|
protoOf(RoomWasCreatedAction).equals = function (other) {
|
|
@@ -1123,18 +1142,18 @@
|
|
|
1123
1142
|
if (!(other instanceof RoomWasCreatedAction))
|
|
1124
1143
|
return false;
|
|
1125
1144
|
var tmp0_other_with_cast = other instanceof RoomWasCreatedAction ? other : THROW_CCE();
|
|
1126
|
-
if (!(this.
|
|
1145
|
+
if (!(this.g7x_1 === tmp0_other_with_cast.g7x_1))
|
|
1127
1146
|
return false;
|
|
1128
|
-
if (!(this.
|
|
1147
|
+
if (!(this.h7x_1 === tmp0_other_with_cast.h7x_1))
|
|
1129
1148
|
return false;
|
|
1130
|
-
if (!this.
|
|
1149
|
+
if (!this.i7x_1.equals(tmp0_other_with_cast.i7x_1))
|
|
1131
1150
|
return false;
|
|
1132
|
-
if (!equals(this.
|
|
1151
|
+
if (!equals(this.j7x_1, tmp0_other_with_cast.j7x_1))
|
|
1133
1152
|
return false;
|
|
1134
1153
|
return true;
|
|
1135
1154
|
};
|
|
1136
1155
|
defineProp(protoOf(RoomWasCreatedAction), 'actionTag', function () {
|
|
1137
|
-
return this.
|
|
1156
|
+
return this.g2t();
|
|
1138
1157
|
});
|
|
1139
1158
|
function RoomWasDeletedAction() {
|
|
1140
1159
|
RoomWasDeletedAction_instance = this;
|
|
@@ -1144,7 +1163,7 @@
|
|
|
1144
1163
|
return 'RoomWasDeletedAction';
|
|
1145
1164
|
};
|
|
1146
1165
|
defineProp(protoOf(RoomWasDeletedAction), 'actionTag', function () {
|
|
1147
|
-
return this.
|
|
1166
|
+
return this.g2t();
|
|
1148
1167
|
});
|
|
1149
1168
|
var RoomWasDeletedAction_instance;
|
|
1150
1169
|
function RoomWasDeletedAction_getInstance() {
|
|
@@ -1155,64 +1174,64 @@
|
|
|
1155
1174
|
function RoomAction() {
|
|
1156
1175
|
}
|
|
1157
1176
|
defineProp(protoOf(RoomAction), 'actionTag', function () {
|
|
1158
|
-
return this.
|
|
1177
|
+
return this.g2t();
|
|
1159
1178
|
});
|
|
1160
1179
|
function _get_asyncProvider__jbpyhw($this) {
|
|
1161
1180
|
var tmp$ret$0;
|
|
1162
1181
|
// Inline function 'kotlin.getValue' call
|
|
1163
1182
|
var tmp0_getValue = asyncProvider$factory_0();
|
|
1164
|
-
tmp$ret$0 = $this.
|
|
1183
|
+
tmp$ret$0 = $this.n7x_1.n1();
|
|
1165
1184
|
return tmp$ret$0;
|
|
1166
1185
|
}
|
|
1167
1186
|
function _get_logger__rkp4sl_0($this) {
|
|
1168
1187
|
var tmp$ret$0;
|
|
1169
1188
|
// Inline function 'kotlin.getValue' call
|
|
1170
1189
|
var tmp0_getValue = logger$factory_2();
|
|
1171
|
-
tmp$ret$0 = $this.
|
|
1190
|
+
tmp$ret$0 = $this.o7x_1.n1();
|
|
1172
1191
|
return tmp$ret$0;
|
|
1173
1192
|
}
|
|
1174
1193
|
function _get_reconnectionInteractor__pua73z($this) {
|
|
1175
1194
|
var tmp$ret$0;
|
|
1176
1195
|
// Inline function 'kotlin.getValue' call
|
|
1177
1196
|
var tmp0_getValue = reconnectionInteractor$factory_0();
|
|
1178
|
-
tmp$ret$0 = $this.
|
|
1197
|
+
tmp$ret$0 = $this.p7x_1.n1();
|
|
1179
1198
|
return tmp$ret$0;
|
|
1180
1199
|
}
|
|
1181
1200
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
1182
1201
|
var tmp$ret$0;
|
|
1183
1202
|
// Inline function 'kotlin.getValue' call
|
|
1184
1203
|
var tmp0_getValue = lastCardInteractor$factory_0();
|
|
1185
|
-
tmp$ret$0 = $this.
|
|
1204
|
+
tmp$ret$0 = $this.q7x_1.n1();
|
|
1186
1205
|
return tmp$ret$0;
|
|
1187
1206
|
}
|
|
1188
1207
|
function _get_serverConfig__rk2g06($this) {
|
|
1189
1208
|
var tmp$ret$0;
|
|
1190
1209
|
// Inline function 'kotlin.getValue' call
|
|
1191
1210
|
var tmp0_getValue = serverConfig$factory_0();
|
|
1192
|
-
tmp$ret$0 = $this.
|
|
1211
|
+
tmp$ret$0 = $this.r7x_1.n1();
|
|
1193
1212
|
return tmp$ret$0;
|
|
1194
1213
|
}
|
|
1195
1214
|
function _get_logicConfig__52ww9d($this) {
|
|
1196
1215
|
var tmp$ret$0;
|
|
1197
1216
|
// Inline function 'kotlin.getValue' call
|
|
1198
1217
|
var tmp0_getValue = logicConfig$factory_0();
|
|
1199
|
-
tmp$ret$0 = $this.
|
|
1218
|
+
tmp$ret$0 = $this.s7x_1.n1();
|
|
1200
1219
|
return tmp$ret$0;
|
|
1201
1220
|
}
|
|
1202
1221
|
function _get_botConfig__cpaxzc($this) {
|
|
1203
1222
|
var tmp$ret$0;
|
|
1204
1223
|
// Inline function 'kotlin.getValue' call
|
|
1205
1224
|
var tmp0_getValue = botConfig$factory_0();
|
|
1206
|
-
tmp$ret$0 = $this.
|
|
1225
|
+
tmp$ret$0 = $this.t7x_1.n1();
|
|
1207
1226
|
return tmp$ret$0;
|
|
1208
1227
|
}
|
|
1209
1228
|
function ServerGameStoreContract(di, commonStoreContract, botGameStoreContract, gameMechanicStoreContract) {
|
|
1210
1229
|
commonStoreContract = commonStoreContract === VOID ? new CommonStoreContract(di) : commonStoreContract;
|
|
1211
1230
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
1212
1231
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di) : gameMechanicStoreContract;
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1232
|
+
this.k7x_1 = commonStoreContract;
|
|
1233
|
+
this.l7x_1 = botGameStoreContract;
|
|
1234
|
+
this.m7x_1 = gameMechanicStoreContract;
|
|
1216
1235
|
var tmp = this;
|
|
1217
1236
|
var tmp$ret$1;
|
|
1218
1237
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1221,7 +1240,7 @@
|
|
|
1221
1240
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
1222
1241
|
tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1223
1242
|
tmp$ret$1 = Instance(di, tmp$ret$0, null);
|
|
1224
|
-
tmp.
|
|
1243
|
+
tmp.n7x_1 = tmp$ret$1.x2n(this, asyncProvider$factory());
|
|
1225
1244
|
var tmp_1 = this;
|
|
1226
1245
|
var tmp$ret$3;
|
|
1227
1246
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1230,7 +1249,7 @@
|
|
|
1230
1249
|
var tmp_2 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
1231
1250
|
tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1232
1251
|
tmp$ret$3 = Instance(di, tmp$ret$2, null);
|
|
1233
|
-
tmp_1.
|
|
1252
|
+
tmp_1.o7x_1 = tmp$ret$3.x2n(this, logger$factory_1());
|
|
1234
1253
|
var tmp_3 = this;
|
|
1235
1254
|
var tmp$ret$5;
|
|
1236
1255
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1239,7 +1258,7 @@
|
|
|
1239
1258
|
var tmp_4 = typeToken(createKType(getKClass(ReconnectionInteractor), arrayOf([]), false));
|
|
1240
1259
|
tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1241
1260
|
tmp$ret$5 = Instance(di, tmp$ret$4, null);
|
|
1242
|
-
tmp_3.
|
|
1261
|
+
tmp_3.p7x_1 = tmp$ret$5.x2n(this, reconnectionInteractor$factory());
|
|
1243
1262
|
var tmp_5 = this;
|
|
1244
1263
|
var tmp$ret$7;
|
|
1245
1264
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1248,7 +1267,7 @@
|
|
|
1248
1267
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
1249
1268
|
tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1250
1269
|
tmp$ret$7 = Instance(di, tmp$ret$6, null);
|
|
1251
|
-
tmp_5.
|
|
1270
|
+
tmp_5.q7x_1 = tmp$ret$7.x2n(this, lastCardInteractor$factory());
|
|
1252
1271
|
var tmp_7 = this;
|
|
1253
1272
|
var tmp$ret$9;
|
|
1254
1273
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1257,7 +1276,7 @@
|
|
|
1257
1276
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
1258
1277
|
tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1259
1278
|
tmp$ret$9 = Instance(di, tmp$ret$8, null);
|
|
1260
|
-
tmp_7.
|
|
1279
|
+
tmp_7.r7x_1 = tmp$ret$9.x2n(this, serverConfig$factory());
|
|
1261
1280
|
var tmp_9 = this;
|
|
1262
1281
|
var tmp$ret$11;
|
|
1263
1282
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1266,7 +1285,7 @@
|
|
|
1266
1285
|
var tmp_10 = typeToken(createKType(getKClass(LogicReduxConfig), arrayOf([]), false));
|
|
1267
1286
|
tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
1268
1287
|
tmp$ret$11 = Instance(di, tmp$ret$10, null);
|
|
1269
|
-
tmp_9.
|
|
1288
|
+
tmp_9.s7x_1 = tmp$ret$11.x2n(this, logicConfig$factory());
|
|
1270
1289
|
var tmp_11 = this;
|
|
1271
1290
|
var tmp$ret$13;
|
|
1272
1291
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1275,13 +1294,13 @@
|
|
|
1275
1294
|
var tmp_12 = typeToken(createKType(getKClass(BotReduxConfig), arrayOf([]), false));
|
|
1276
1295
|
tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
1277
1296
|
tmp$ret$13 = Instance(di, tmp$ret$12, null);
|
|
1278
|
-
tmp_11.
|
|
1297
|
+
tmp_11.t7x_1 = tmp$ret$13.x2n(this, botConfig$factory());
|
|
1279
1298
|
}
|
|
1280
|
-
protoOf(ServerGameStoreContract).
|
|
1281
|
-
return plus(plus(plus(listOf(serverConfigReducer()), this.
|
|
1299
|
+
protoOf(ServerGameStoreContract).z4q = function () {
|
|
1300
|
+
return plus(plus(plus(listOf(serverConfigReducer()), this.k7x_1.z4q()), this.l7x_1.z4q()), this.m7x_1.z4q());
|
|
1282
1301
|
};
|
|
1283
|
-
protoOf(ServerGameStoreContract).
|
|
1284
|
-
return plus(plus(plus(plus(listOfNotNull([finishingGameWhenCantStartNewMiddleware(), checkGameIsFinishingWaitForRoomDeleteMiddleware(_get_logger__rkp4sl_0(this)), _get_serverConfig__rk2g06(this).
|
|
1302
|
+
protoOf(ServerGameStoreContract).a4r = function () {
|
|
1303
|
+
return plus(plus(plus(plus(listOfNotNull([finishingGameWhenCantStartNewMiddleware(), checkGameIsFinishingWaitForRoomDeleteMiddleware(_get_logger__rkp4sl_0(this)), _get_serverConfig__rk2g06(this).w7w_1 ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null]), this.k7x_1.a4r()), this.l7x_1.a4r()), this.m7x_1.a4r()), listOfNotNull([playerConnectionUpdateMiddleware(_get_reconnectionInteractor__pua73z(this)), playerReconnectionWaitingTimerTickMiddleware(_get_reconnectionInteractor__pua73z(this)), gameStatisticsMiddleware(), serverPlayerTurnTimerTickMiddleware(_get_serverConfig__rk2g06(this), _get_logger__rkp4sl_0(this)), serverMapMechanicToServerActionMiddleware(_get_logicConfig__52ww9d(this), _get_botConfig__cpaxzc(this), _get_lastCardInteractor__h6lq3w(this)), roomLifecycleMiddleware(_get_asyncProvider__jbpyhw(this), _get_logger__rkp4sl_0(this)), clearOnFinishMiddleware(_get_asyncProvider__jbpyhw(this)), _get_botConfig__cpaxzc(this).autoStepLastCard ? putPlayerLastCardMiddleware(_get_lastCardInteractor__h6lq3w(this)) : null]));
|
|
1285
1304
|
};
|
|
1286
1305
|
function asyncProvider$factory() {
|
|
1287
1306
|
return getPropertyCallableRef('asyncProvider', 1, KProperty1, function (receiver) {
|
|
@@ -1361,19 +1380,19 @@
|
|
|
1361
1380
|
}
|
|
1362
1381
|
function _no_name_provided__qut3iv() {
|
|
1363
1382
|
}
|
|
1364
|
-
protoOf(_no_name_provided__qut3iv).
|
|
1383
|
+
protoOf(_no_name_provided__qut3iv).r2y = function (action) {
|
|
1365
1384
|
return action instanceof PartyEndedAction;
|
|
1366
1385
|
};
|
|
1367
|
-
protoOf(_no_name_provided__qut3iv).
|
|
1386
|
+
protoOf(_no_name_provided__qut3iv).r4s = function (store, next, action) {
|
|
1368
1387
|
// Inline function 'com.debertz.logic.server.redux.middlewares.finishingGameWhenCantStartNewMiddleware.<anonymous>' call
|
|
1369
1388
|
var tmp0__anonymous__q1qw7t = action instanceof PartyEndedAction ? action : THROW_CCE();
|
|
1370
1389
|
next(tmp0__anonymous__q1qw7t);
|
|
1371
|
-
if (!get_serverState(store.state).
|
|
1390
|
+
if (!get_serverState(store.state).t7w_1.u7w_1 ? tmp0__anonymous__q1qw7t.isGameFinished : false) {
|
|
1372
1391
|
store.dispatch(new FinishingGameMechanicAction(new GameFinishedReason(Reason_DEPLOY_getInstance())));
|
|
1373
1392
|
}
|
|
1374
1393
|
};
|
|
1375
|
-
protoOf(_no_name_provided__qut3iv).
|
|
1376
|
-
return this.
|
|
1394
|
+
protoOf(_no_name_provided__qut3iv).s2y = function (store, next, action) {
|
|
1395
|
+
return this.r4s(store, next, action);
|
|
1377
1396
|
};
|
|
1378
1397
|
function serverMapMechanicToServerActionMiddleware(logicConfig, botConfig, lastCardInteractor) {
|
|
1379
1398
|
var tmp$ret$0;
|
|
@@ -1381,30 +1400,30 @@
|
|
|
1381
1400
|
tmp$ret$0 = new _no_name_provided__qut3iv_0(logicConfig, botConfig, lastCardInteractor);
|
|
1382
1401
|
return tmp$ret$0;
|
|
1383
1402
|
}
|
|
1384
|
-
function serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$
|
|
1385
|
-
return $logicConfig.
|
|
1403
|
+
function serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$backwardActions_1e7uk5($logicConfig) {
|
|
1404
|
+
return $logicConfig.v35_1;
|
|
1386
1405
|
}
|
|
1387
|
-
function serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$
|
|
1388
|
-
return $botConfig.autoStepLastCard ? $lastCardInteractor.
|
|
1406
|
+
function serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$autoStepLastCard_d4tzgw($botConfig, $lastCardInteractor, $this_with, playerId) {
|
|
1407
|
+
return $botConfig.autoStepLastCard ? $lastCardInteractor.a4j(getPlayer($this_with.k35().players, playerId), $this_with.k35().config.rules) : false;
|
|
1389
1408
|
}
|
|
1390
1409
|
function serverMapMechanicToServerActionMiddleware$o$handle$lambda($state) {
|
|
1391
1410
|
return function () {
|
|
1392
|
-
return $state.
|
|
1411
|
+
return $state.k35().playersConnections;
|
|
1393
1412
|
};
|
|
1394
1413
|
}
|
|
1395
1414
|
function _no_name_provided__qut3iv_0($logicConfig, $botConfig, $lastCardInteractor) {
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1398
|
-
this.
|
|
1415
|
+
this.u7x_1 = $logicConfig;
|
|
1416
|
+
this.v7x_1 = $botConfig;
|
|
1417
|
+
this.w7x_1 = $lastCardInteractor;
|
|
1399
1418
|
}
|
|
1400
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
1419
|
+
protoOf(_no_name_provided__qut3iv_0).r2y = function (action) {
|
|
1401
1420
|
return action instanceof MechanicAction;
|
|
1402
1421
|
};
|
|
1403
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
1422
|
+
protoOf(_no_name_provided__qut3iv_0).r4s = function (store, next, action) {
|
|
1404
1423
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>' call
|
|
1405
1424
|
var tmp0__anonymous__q1qw7t = action instanceof MechanicAction ? action : THROW_CCE();
|
|
1406
1425
|
var state = store.state;
|
|
1407
|
-
var tmp$ret$
|
|
1426
|
+
var tmp$ret$114;
|
|
1408
1427
|
// Inline function 'kotlin.with' call
|
|
1409
1428
|
// Inline function 'kotlin.contracts.contract' call
|
|
1410
1429
|
var getPlayers = serverMapMechanicToServerActionMiddleware$o$handle$lambda(state);
|
|
@@ -1412,12 +1431,12 @@
|
|
|
1412
1431
|
var tmp;
|
|
1413
1432
|
if (tmp0_subject instanceof StartGameMechanicAction) {
|
|
1414
1433
|
var tmp$ret$17;
|
|
1415
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1416
|
-
var
|
|
1417
|
-
var
|
|
1434
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser' call
|
|
1435
|
+
var tmp7_createActionForUser = tmp0__anonymous__q1qw7t.n3x_1;
|
|
1436
|
+
var tmp8_createActionForUser = tmp0__anonymous__q1qw7t.p3x_1;
|
|
1418
1437
|
var tmp$ret$2;
|
|
1419
1438
|
// Inline function 'kotlin.collections.map' call
|
|
1420
|
-
var tmp1_map = tmp0__anonymous__q1qw7t.
|
|
1439
|
+
var tmp1_map = tmp0__anonymous__q1qw7t.q3x_1;
|
|
1421
1440
|
var tmp$ret$1;
|
|
1422
1441
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1423
1442
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1426,12 +1445,12 @@
|
|
|
1426
1445
|
var item = tmp0_iterator.h();
|
|
1427
1446
|
var tmp$ret$0;
|
|
1428
1447
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1429
|
-
tmp$ret$0 = to(item.
|
|
1448
|
+
tmp$ret$0 = to(item.x2p_1, PlayerConnectionState_LIVE_getInstance());
|
|
1430
1449
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1431
1450
|
}
|
|
1432
1451
|
tmp$ret$1 = tmp0_mapTo;
|
|
1433
1452
|
tmp$ret$2 = tmp$ret$1;
|
|
1434
|
-
var
|
|
1453
|
+
var tmp9_createActionForUser = tmp$ret$2;
|
|
1435
1454
|
var tmp$ret$16;
|
|
1436
1455
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1437
1456
|
var tmp$ret$8;
|
|
@@ -1441,11 +1460,11 @@
|
|
|
1441
1460
|
var tmp$ret$4;
|
|
1442
1461
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1443
1462
|
var tmp2_filterTo = ArrayList_init_$Create$();
|
|
1444
|
-
var tmp0_iterator_0 =
|
|
1463
|
+
var tmp0_iterator_0 = tmp9_createActionForUser.f();
|
|
1445
1464
|
while (tmp0_iterator_0.g()) {
|
|
1446
1465
|
var element = tmp0_iterator_0.h();
|
|
1447
1466
|
var tmp$ret$3;
|
|
1448
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1467
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1449
1468
|
tmp$ret$3 = element.a4_1.isLive;
|
|
1450
1469
|
if (tmp$ret$3) {
|
|
1451
1470
|
tmp2_filterTo.a(element);
|
|
@@ -1461,7 +1480,7 @@
|
|
|
1461
1480
|
while (tmp0_iterator_1.g()) {
|
|
1462
1481
|
var item_0 = tmp0_iterator_1.h();
|
|
1463
1482
|
var tmp$ret$6;
|
|
1464
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1483
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1465
1484
|
tmp$ret$6 = item_0.z3_1;
|
|
1466
1485
|
tmp3_mapTo.a(tmp$ret$6);
|
|
1467
1486
|
}
|
|
@@ -1477,27 +1496,27 @@
|
|
|
1477
1496
|
var element_0 = tmp0_iterator_2.h();
|
|
1478
1497
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
1479
1498
|
var tmp$ret$13;
|
|
1480
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1499
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1481
1500
|
var tmp$ret$12;
|
|
1482
1501
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1483
|
-
var tmp_0 = Companion_getInstance_1();
|
|
1484
1502
|
var tmp$ret$11;
|
|
1485
1503
|
// Inline function 'kotlin.collections.map' call
|
|
1486
1504
|
var tmp$ret$10;
|
|
1487
1505
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1488
|
-
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
1489
|
-
var tmp0_iterator_3 =
|
|
1506
|
+
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp9_createActionForUser, 10));
|
|
1507
|
+
var tmp0_iterator_3 = tmp9_createActionForUser.f();
|
|
1490
1508
|
while (tmp0_iterator_3.g()) {
|
|
1491
1509
|
var item_1 = tmp0_iterator_3.h();
|
|
1492
1510
|
var tmp$ret$9;
|
|
1493
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1511
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>.<anonymous>' call
|
|
1494
1512
|
tmp$ret$9 = item_1.z3_1;
|
|
1495
1513
|
tmp0_mapTo_0.a(tmp$ret$9);
|
|
1496
1514
|
}
|
|
1497
1515
|
tmp$ret$10 = tmp0_mapTo_0;
|
|
1498
1516
|
tmp$ret$11 = tmp$ret$10;
|
|
1499
|
-
var
|
|
1500
|
-
|
|
1517
|
+
var tmp0_playersIds = tmp$ret$11;
|
|
1518
|
+
var tmp10__anonymous__yfiz50 = UserActionPayload_init_$Create$(tmp7_createActionForUser, tmp8_createActionForUser, element_0, tmp0_playersIds);
|
|
1519
|
+
tmp$ret$12 = mapToClient_16(tmp0__anonymous__q1qw7t, tmp10__anonymous__yfiz50);
|
|
1501
1520
|
tmp$ret$13 = tmp$ret$12;
|
|
1502
1521
|
var tmp0_safe_receiver = tmp$ret$13;
|
|
1503
1522
|
if (tmp0_safe_receiver == null)
|
|
@@ -1517,10 +1536,10 @@
|
|
|
1517
1536
|
} else {
|
|
1518
1537
|
if (tmp0_subject instanceof ContinueGameMechanicAction) {
|
|
1519
1538
|
var tmp$ret$32;
|
|
1520
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1521
|
-
var
|
|
1522
|
-
var
|
|
1523
|
-
var
|
|
1539
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser' call
|
|
1540
|
+
var tmp16_createActionForUser = tmp0__anonymous__q1qw7t.r3x_1.id;
|
|
1541
|
+
var tmp17_createActionForUser = tmp0__anonymous__q1qw7t.k4q();
|
|
1542
|
+
var tmp18_createActionForUser = getPlayers();
|
|
1524
1543
|
var tmp$ret$31;
|
|
1525
1544
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1526
1545
|
var tmp$ret$23;
|
|
@@ -1530,11 +1549,11 @@
|
|
|
1530
1549
|
var tmp$ret$19;
|
|
1531
1550
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1532
1551
|
var tmp11_filterTo = ArrayList_init_$Create$();
|
|
1533
|
-
var tmp0_iterator_4 =
|
|
1552
|
+
var tmp0_iterator_4 = tmp18_createActionForUser.f();
|
|
1534
1553
|
while (tmp0_iterator_4.g()) {
|
|
1535
1554
|
var element_1 = tmp0_iterator_4.h();
|
|
1536
1555
|
var tmp$ret$18;
|
|
1537
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1556
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1538
1557
|
tmp$ret$18 = element_1.a4_1.isLive;
|
|
1539
1558
|
if (tmp$ret$18) {
|
|
1540
1559
|
tmp11_filterTo.a(element_1);
|
|
@@ -1550,7 +1569,7 @@
|
|
|
1550
1569
|
while (tmp0_iterator_5.g()) {
|
|
1551
1570
|
var item_2 = tmp0_iterator_5.h();
|
|
1552
1571
|
var tmp$ret$21;
|
|
1553
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1572
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1554
1573
|
tmp$ret$21 = item_2.z3_1;
|
|
1555
1574
|
tmp12_mapTo.a(tmp$ret$21);
|
|
1556
1575
|
}
|
|
@@ -1566,27 +1585,27 @@
|
|
|
1566
1585
|
var element_2 = tmp0_iterator_6.h();
|
|
1567
1586
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
1568
1587
|
var tmp$ret$28;
|
|
1569
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1588
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1570
1589
|
var tmp$ret$27;
|
|
1571
1590
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1572
|
-
var tmp_1 = Companion_getInstance_1();
|
|
1573
1591
|
var tmp$ret$26;
|
|
1574
1592
|
// Inline function 'kotlin.collections.map' call
|
|
1575
1593
|
var tmp$ret$25;
|
|
1576
1594
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1577
|
-
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
1578
|
-
var tmp0_iterator_7 =
|
|
1595
|
+
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp18_createActionForUser, 10));
|
|
1596
|
+
var tmp0_iterator_7 = tmp18_createActionForUser.f();
|
|
1579
1597
|
while (tmp0_iterator_7.g()) {
|
|
1580
1598
|
var item_3 = tmp0_iterator_7.h();
|
|
1581
1599
|
var tmp$ret$24;
|
|
1582
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1600
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>.<anonymous>' call
|
|
1583
1601
|
tmp$ret$24 = item_3.z3_1;
|
|
1584
1602
|
tmp0_mapTo_1.a(tmp$ret$24);
|
|
1585
1603
|
}
|
|
1586
1604
|
tmp$ret$25 = tmp0_mapTo_1;
|
|
1587
1605
|
tmp$ret$26 = tmp$ret$25;
|
|
1588
|
-
var
|
|
1589
|
-
|
|
1606
|
+
var tmp0_playersIds_0 = tmp$ret$26;
|
|
1607
|
+
var tmp19__anonymous__98mtqr = UserActionPayload_init_$Create$(tmp16_createActionForUser, tmp17_createActionForUser, element_2, tmp0_playersIds_0);
|
|
1608
|
+
tmp$ret$27 = mapToClient_15(tmp0__anonymous__q1qw7t, tmp19__anonymous__98mtqr);
|
|
1590
1609
|
tmp$ret$28 = tmp$ret$27;
|
|
1591
1610
|
var tmp0_safe_receiver_0 = tmp$ret$28;
|
|
1592
1611
|
if (tmp0_safe_receiver_0 == null)
|
|
@@ -1605,1694 +1624,494 @@
|
|
|
1605
1624
|
tmp = tmp$ret$32;
|
|
1606
1625
|
} else {
|
|
1607
1626
|
if (tmp0_subject instanceof FinishingGameMechanicAction) {
|
|
1608
|
-
var tmp$ret$51;
|
|
1609
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
1610
|
-
var tmp27_mapToClientActionsFromTable = state.k34();
|
|
1611
|
-
var tmp0_roomId = tmp27_mapToClientActionsFromTable.id;
|
|
1612
|
-
var tmp$ret$35;
|
|
1613
|
-
// Inline function 'kotlin.collections.map' call
|
|
1614
|
-
var tmp21_map = tmp27_mapToClientActionsFromTable.players;
|
|
1615
1627
|
var tmp$ret$34;
|
|
1616
|
-
// Inline function '
|
|
1617
|
-
var
|
|
1618
|
-
var
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
tmp20_mapTo.a(tmp$ret$33);
|
|
1625
|
-
}
|
|
1626
|
-
tmp$ret$34 = tmp20_mapTo;
|
|
1627
|
-
tmp$ret$35 = tmp$ret$34;
|
|
1628
|
-
var tmp1_players = tmp$ret$35;
|
|
1629
|
-
var tmp2_gameCreatorPlayerId = getGameCreator(tmp27_mapToClientActionsFromTable.players).m2o();
|
|
1630
|
-
var tmp$ret$50;
|
|
1631
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
1632
|
-
var tmp$ret$49;
|
|
1633
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1634
|
-
var tmp$ret$41;
|
|
1635
|
-
// Inline function 'kotlin.collections.map' call
|
|
1636
|
-
var tmp$ret$38;
|
|
1637
|
-
// Inline function 'kotlin.collections.filter' call
|
|
1638
|
-
var tmp$ret$37;
|
|
1639
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
1640
|
-
var tmp22_filterTo = ArrayList_init_$Create$();
|
|
1641
|
-
var tmp0_iterator_9 = tmp1_players.f();
|
|
1642
|
-
while (tmp0_iterator_9.g()) {
|
|
1643
|
-
var element_3 = tmp0_iterator_9.h();
|
|
1644
|
-
var tmp$ret$36;
|
|
1645
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1646
|
-
tmp$ret$36 = element_3.a4_1.isLive;
|
|
1647
|
-
if (tmp$ret$36) {
|
|
1648
|
-
tmp22_filterTo.a(element_3);
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
tmp$ret$37 = tmp22_filterTo;
|
|
1652
|
-
tmp$ret$38 = tmp$ret$37;
|
|
1653
|
-
var tmp24_map = tmp$ret$38;
|
|
1654
|
-
var tmp$ret$40;
|
|
1655
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
1656
|
-
var tmp23_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp24_map, 10));
|
|
1657
|
-
var tmp0_iterator_10 = tmp24_map.f();
|
|
1658
|
-
while (tmp0_iterator_10.g()) {
|
|
1659
|
-
var item_5 = tmp0_iterator_10.h();
|
|
1660
|
-
var tmp$ret$39;
|
|
1661
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1662
|
-
tmp$ret$39 = item_5.z3_1;
|
|
1663
|
-
tmp23_mapTo.a(tmp$ret$39);
|
|
1664
|
-
}
|
|
1665
|
-
tmp$ret$40 = tmp23_mapTo;
|
|
1666
|
-
tmp$ret$41 = tmp$ret$40;
|
|
1667
|
-
var tmp26_mapNotNull = tmp$ret$41;
|
|
1668
|
-
var tmp$ret$48;
|
|
1669
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1670
|
-
var tmp25_mapNotNullTo = ArrayList_init_$Create$();
|
|
1671
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
1672
|
-
var tmp0_iterator_11 = tmp26_mapNotNull.f();
|
|
1673
|
-
while (tmp0_iterator_11.g()) {
|
|
1674
|
-
var element_4 = tmp0_iterator_11.h();
|
|
1675
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
1676
|
-
var tmp$ret$46;
|
|
1677
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1678
|
-
var tmp$ret$45;
|
|
1679
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1680
|
-
var tmp_2 = Companion_getInstance_1();
|
|
1681
|
-
var tmp$ret$44;
|
|
1682
|
-
// Inline function 'kotlin.collections.map' call
|
|
1683
|
-
var tmp$ret$43;
|
|
1684
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
1685
|
-
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_players, 10));
|
|
1686
|
-
var tmp0_iterator_12 = tmp1_players.f();
|
|
1687
|
-
while (tmp0_iterator_12.g()) {
|
|
1688
|
-
var item_6 = tmp0_iterator_12.h();
|
|
1689
|
-
var tmp$ret$42;
|
|
1690
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
1691
|
-
tmp$ret$42 = item_6.z3_1;
|
|
1692
|
-
tmp0_mapTo_2.a(tmp$ret$42);
|
|
1693
|
-
}
|
|
1694
|
-
tmp$ret$43 = tmp0_mapTo_2;
|
|
1695
|
-
tmp$ret$44 = tmp$ret$43;
|
|
1696
|
-
var tmp28__anonymous__cqy22d = tmp_2.g4o(element_4, tmp2_gameCreatorPlayerId, tmp0_roomId, tmp$ret$44);
|
|
1697
|
-
tmp$ret$45 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp28__anonymous__cqy22d);
|
|
1698
|
-
tmp$ret$46 = tmp$ret$45;
|
|
1699
|
-
var tmp0_safe_receiver_1 = tmp$ret$46;
|
|
1700
|
-
if (tmp0_safe_receiver_1 == null)
|
|
1701
|
-
null;
|
|
1702
|
-
else {
|
|
1703
|
-
var tmp$ret$47;
|
|
1704
|
-
// Inline function 'kotlin.let' call
|
|
1705
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1706
|
-
tmp25_mapNotNullTo.a(tmp0_safe_receiver_1);
|
|
1707
|
-
tmp$ret$47 = Unit_getInstance();
|
|
1708
|
-
}
|
|
1709
|
-
}
|
|
1710
|
-
tmp$ret$48 = tmp25_mapNotNullTo;
|
|
1711
|
-
tmp$ret$49 = tmp$ret$48;
|
|
1712
|
-
tmp$ret$50 = tmp$ret$49;
|
|
1713
|
-
tmp$ret$51 = tmp$ret$50;
|
|
1714
|
-
tmp = tmp$ret$51;
|
|
1628
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
1629
|
+
var tmp20_createRoomActionFromTable = state.k35();
|
|
1630
|
+
var tmp$ret$33;
|
|
1631
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1632
|
+
var tmp21__anonymous__l7ugec = new RoomActionPayload(tmp20_createRoomActionFromTable.id, null);
|
|
1633
|
+
tmp$ret$33 = mapToClient_14(tmp0__anonymous__q1qw7t, tmp21__anonymous__l7ugec);
|
|
1634
|
+
tmp$ret$34 = listOfNotNull_0(tmp$ret$33);
|
|
1635
|
+
tmp = tmp$ret$34;
|
|
1715
1636
|
} else {
|
|
1716
1637
|
if (tmp0_subject instanceof FinishGameMechanicAction) {
|
|
1717
|
-
var tmp$ret$
|
|
1718
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1719
|
-
var
|
|
1720
|
-
var
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
var tmp29_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp30_map, 10));
|
|
1727
|
-
var tmp0_iterator_13 = tmp30_map.f();
|
|
1728
|
-
while (tmp0_iterator_13.g()) {
|
|
1729
|
-
var item_7 = tmp0_iterator_13.h();
|
|
1730
|
-
var tmp$ret$52;
|
|
1731
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
1732
|
-
tmp$ret$52 = to(item_7.m2o(), item_7.c38_1.r2p_1);
|
|
1733
|
-
tmp29_mapTo.a(tmp$ret$52);
|
|
1734
|
-
}
|
|
1735
|
-
tmp$ret$53 = tmp29_mapTo;
|
|
1736
|
-
tmp$ret$54 = tmp$ret$53;
|
|
1737
|
-
var tmp1_players_0 = tmp$ret$54;
|
|
1738
|
-
var tmp2_gameCreatorPlayerId_0 = getGameCreator(tmp36_mapToClientActionsFromTable.players).m2o();
|
|
1739
|
-
var tmp$ret$69;
|
|
1740
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
1741
|
-
var tmp$ret$68;
|
|
1742
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1743
|
-
var tmp$ret$60;
|
|
1744
|
-
// Inline function 'kotlin.collections.map' call
|
|
1745
|
-
var tmp$ret$57;
|
|
1746
|
-
// Inline function 'kotlin.collections.filter' call
|
|
1747
|
-
var tmp$ret$56;
|
|
1748
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
1749
|
-
var tmp31_filterTo = ArrayList_init_$Create$();
|
|
1750
|
-
var tmp0_iterator_14 = tmp1_players_0.f();
|
|
1751
|
-
while (tmp0_iterator_14.g()) {
|
|
1752
|
-
var element_5 = tmp0_iterator_14.h();
|
|
1753
|
-
var tmp$ret$55;
|
|
1754
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1755
|
-
tmp$ret$55 = element_5.a4_1.isLive;
|
|
1756
|
-
if (tmp$ret$55) {
|
|
1757
|
-
tmp31_filterTo.a(element_5);
|
|
1758
|
-
}
|
|
1759
|
-
}
|
|
1760
|
-
tmp$ret$56 = tmp31_filterTo;
|
|
1761
|
-
tmp$ret$57 = tmp$ret$56;
|
|
1762
|
-
var tmp33_map = tmp$ret$57;
|
|
1763
|
-
var tmp$ret$59;
|
|
1764
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
1765
|
-
var tmp32_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp33_map, 10));
|
|
1766
|
-
var tmp0_iterator_15 = tmp33_map.f();
|
|
1767
|
-
while (tmp0_iterator_15.g()) {
|
|
1768
|
-
var item_8 = tmp0_iterator_15.h();
|
|
1769
|
-
var tmp$ret$58;
|
|
1770
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1771
|
-
tmp$ret$58 = item_8.z3_1;
|
|
1772
|
-
tmp32_mapTo.a(tmp$ret$58);
|
|
1773
|
-
}
|
|
1774
|
-
tmp$ret$59 = tmp32_mapTo;
|
|
1775
|
-
tmp$ret$60 = tmp$ret$59;
|
|
1776
|
-
var tmp35_mapNotNull = tmp$ret$60;
|
|
1777
|
-
var tmp$ret$67;
|
|
1778
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1779
|
-
var tmp34_mapNotNullTo = ArrayList_init_$Create$();
|
|
1780
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
1781
|
-
var tmp0_iterator_16 = tmp35_mapNotNull.f();
|
|
1782
|
-
while (tmp0_iterator_16.g()) {
|
|
1783
|
-
var element_6 = tmp0_iterator_16.h();
|
|
1784
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
1785
|
-
var tmp$ret$65;
|
|
1786
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1787
|
-
var tmp$ret$64;
|
|
1788
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1789
|
-
var tmp_3 = Companion_getInstance_1();
|
|
1790
|
-
var tmp$ret$63;
|
|
1791
|
-
// Inline function 'kotlin.collections.map' call
|
|
1792
|
-
var tmp$ret$62;
|
|
1793
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
1794
|
-
var tmp0_mapTo_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_players_0, 10));
|
|
1795
|
-
var tmp0_iterator_17 = tmp1_players_0.f();
|
|
1796
|
-
while (tmp0_iterator_17.g()) {
|
|
1797
|
-
var item_9 = tmp0_iterator_17.h();
|
|
1798
|
-
var tmp$ret$61;
|
|
1799
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
1800
|
-
tmp$ret$61 = item_9.z3_1;
|
|
1801
|
-
tmp0_mapTo_3.a(tmp$ret$61);
|
|
1802
|
-
}
|
|
1803
|
-
tmp$ret$62 = tmp0_mapTo_3;
|
|
1804
|
-
tmp$ret$63 = tmp$ret$62;
|
|
1805
|
-
var tmp37__anonymous__g99adz = tmp_3.g4o(element_6, tmp2_gameCreatorPlayerId_0, tmp0_roomId_0, tmp$ret$63);
|
|
1806
|
-
tmp$ret$64 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp37__anonymous__g99adz);
|
|
1807
|
-
tmp$ret$65 = tmp$ret$64;
|
|
1808
|
-
var tmp0_safe_receiver_2 = tmp$ret$65;
|
|
1809
|
-
if (tmp0_safe_receiver_2 == null)
|
|
1810
|
-
null;
|
|
1811
|
-
else {
|
|
1812
|
-
var tmp$ret$66;
|
|
1813
|
-
// Inline function 'kotlin.let' call
|
|
1814
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1815
|
-
tmp34_mapNotNullTo.a(tmp0_safe_receiver_2);
|
|
1816
|
-
tmp$ret$66 = Unit_getInstance();
|
|
1817
|
-
}
|
|
1818
|
-
}
|
|
1819
|
-
tmp$ret$67 = tmp34_mapNotNullTo;
|
|
1820
|
-
tmp$ret$68 = tmp$ret$67;
|
|
1821
|
-
tmp$ret$69 = tmp$ret$68;
|
|
1822
|
-
tmp$ret$70 = tmp$ret$69;
|
|
1823
|
-
tmp = tmp$ret$70;
|
|
1638
|
+
var tmp$ret$36;
|
|
1639
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
1640
|
+
var tmp22_createRoomActionFromTable = state.k35();
|
|
1641
|
+
var tmp$ret$35;
|
|
1642
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1643
|
+
var tmp23__anonymous__bih5za = new RoomActionPayload(tmp22_createRoomActionFromTable.id, null);
|
|
1644
|
+
tmp$ret$35 = mapToClient_13(tmp0__anonymous__q1qw7t, tmp23__anonymous__bih5za);
|
|
1645
|
+
tmp$ret$36 = listOfNotNull_0(tmp$ret$35);
|
|
1646
|
+
tmp = tmp$ret$36;
|
|
1824
1647
|
} else {
|
|
1825
1648
|
if (tmp0_subject instanceof RestartGameMechanicAction) {
|
|
1826
|
-
var tmp$ret$
|
|
1827
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1828
|
-
var
|
|
1829
|
-
var
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
var tmp38_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp39_map, 10));
|
|
1836
|
-
var tmp0_iterator_18 = tmp39_map.f();
|
|
1837
|
-
while (tmp0_iterator_18.g()) {
|
|
1838
|
-
var item_10 = tmp0_iterator_18.h();
|
|
1839
|
-
var tmp$ret$71;
|
|
1840
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
1841
|
-
tmp$ret$71 = to(item_10.m2o(), item_10.c38_1.r2p_1);
|
|
1842
|
-
tmp38_mapTo.a(tmp$ret$71);
|
|
1843
|
-
}
|
|
1844
|
-
tmp$ret$72 = tmp38_mapTo;
|
|
1845
|
-
tmp$ret$73 = tmp$ret$72;
|
|
1846
|
-
var tmp1_players_1 = tmp$ret$73;
|
|
1847
|
-
var tmp2_gameCreatorPlayerId_1 = getGameCreator(tmp45_mapToClientActionsFromTable.players).m2o();
|
|
1848
|
-
var tmp$ret$88;
|
|
1849
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
1850
|
-
var tmp$ret$87;
|
|
1851
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1852
|
-
var tmp$ret$79;
|
|
1853
|
-
// Inline function 'kotlin.collections.map' call
|
|
1854
|
-
var tmp$ret$76;
|
|
1855
|
-
// Inline function 'kotlin.collections.filter' call
|
|
1856
|
-
var tmp$ret$75;
|
|
1857
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
1858
|
-
var tmp40_filterTo = ArrayList_init_$Create$();
|
|
1859
|
-
var tmp0_iterator_19 = tmp1_players_1.f();
|
|
1860
|
-
while (tmp0_iterator_19.g()) {
|
|
1861
|
-
var element_7 = tmp0_iterator_19.h();
|
|
1862
|
-
var tmp$ret$74;
|
|
1863
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1864
|
-
tmp$ret$74 = element_7.a4_1.isLive;
|
|
1865
|
-
if (tmp$ret$74) {
|
|
1866
|
-
tmp40_filterTo.a(element_7);
|
|
1867
|
-
}
|
|
1868
|
-
}
|
|
1869
|
-
tmp$ret$75 = tmp40_filterTo;
|
|
1870
|
-
tmp$ret$76 = tmp$ret$75;
|
|
1871
|
-
var tmp42_map = tmp$ret$76;
|
|
1872
|
-
var tmp$ret$78;
|
|
1873
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
1874
|
-
var tmp41_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp42_map, 10));
|
|
1875
|
-
var tmp0_iterator_20 = tmp42_map.f();
|
|
1876
|
-
while (tmp0_iterator_20.g()) {
|
|
1877
|
-
var item_11 = tmp0_iterator_20.h();
|
|
1878
|
-
var tmp$ret$77;
|
|
1879
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1880
|
-
tmp$ret$77 = item_11.z3_1;
|
|
1881
|
-
tmp41_mapTo.a(tmp$ret$77);
|
|
1882
|
-
}
|
|
1883
|
-
tmp$ret$78 = tmp41_mapTo;
|
|
1884
|
-
tmp$ret$79 = tmp$ret$78;
|
|
1885
|
-
var tmp44_mapNotNull = tmp$ret$79;
|
|
1886
|
-
var tmp$ret$86;
|
|
1887
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1888
|
-
var tmp43_mapNotNullTo = ArrayList_init_$Create$();
|
|
1889
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
1890
|
-
var tmp0_iterator_21 = tmp44_mapNotNull.f();
|
|
1891
|
-
while (tmp0_iterator_21.g()) {
|
|
1892
|
-
var element_8 = tmp0_iterator_21.h();
|
|
1893
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
1894
|
-
var tmp$ret$84;
|
|
1895
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1896
|
-
var tmp$ret$83;
|
|
1897
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1898
|
-
var tmp_4 = Companion_getInstance_1();
|
|
1899
|
-
var tmp$ret$82;
|
|
1900
|
-
// Inline function 'kotlin.collections.map' call
|
|
1901
|
-
var tmp$ret$81;
|
|
1902
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
1903
|
-
var tmp0_mapTo_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_players_1, 10));
|
|
1904
|
-
var tmp0_iterator_22 = tmp1_players_1.f();
|
|
1905
|
-
while (tmp0_iterator_22.g()) {
|
|
1906
|
-
var item_12 = tmp0_iterator_22.h();
|
|
1907
|
-
var tmp$ret$80;
|
|
1908
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
1909
|
-
tmp$ret$80 = item_12.z3_1;
|
|
1910
|
-
tmp0_mapTo_4.a(tmp$ret$80);
|
|
1911
|
-
}
|
|
1912
|
-
tmp$ret$81 = tmp0_mapTo_4;
|
|
1913
|
-
tmp$ret$82 = tmp$ret$81;
|
|
1914
|
-
var tmp46__anonymous__jrkipl = tmp_4.g4o(element_8, tmp2_gameCreatorPlayerId_1, tmp0_roomId_1, tmp$ret$82);
|
|
1915
|
-
tmp$ret$83 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp46__anonymous__jrkipl);
|
|
1916
|
-
tmp$ret$84 = tmp$ret$83;
|
|
1917
|
-
var tmp0_safe_receiver_3 = tmp$ret$84;
|
|
1918
|
-
if (tmp0_safe_receiver_3 == null)
|
|
1919
|
-
null;
|
|
1920
|
-
else {
|
|
1921
|
-
var tmp$ret$85;
|
|
1922
|
-
// Inline function 'kotlin.let' call
|
|
1923
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1924
|
-
tmp43_mapNotNullTo.a(tmp0_safe_receiver_3);
|
|
1925
|
-
tmp$ret$85 = Unit_getInstance();
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
|
-
tmp$ret$86 = tmp43_mapNotNullTo;
|
|
1929
|
-
tmp$ret$87 = tmp$ret$86;
|
|
1930
|
-
tmp$ret$88 = tmp$ret$87;
|
|
1931
|
-
tmp$ret$89 = tmp$ret$88;
|
|
1932
|
-
tmp = tmp$ret$89;
|
|
1649
|
+
var tmp$ret$38;
|
|
1650
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
1651
|
+
var tmp24_createRoomActionFromTable = state.k35();
|
|
1652
|
+
var tmp$ret$37;
|
|
1653
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1654
|
+
var tmp25__anonymous__1t3vk8 = new RoomActionPayload(tmp24_createRoomActionFromTable.id, null);
|
|
1655
|
+
tmp$ret$37 = mapToClient_12(tmp0__anonymous__q1qw7t, tmp25__anonymous__1t3vk8);
|
|
1656
|
+
tmp$ret$38 = listOfNotNull_0(tmp$ret$37);
|
|
1657
|
+
tmp = tmp$ret$38;
|
|
1933
1658
|
} else {
|
|
1934
1659
|
if (tmp0_subject instanceof SceneMechanicAction) {
|
|
1935
|
-
var tmp$ret$
|
|
1936
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1937
|
-
var
|
|
1938
|
-
var
|
|
1939
|
-
|
|
1660
|
+
var tmp$ret$57;
|
|
1661
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createUserActionFromTable' call
|
|
1662
|
+
var tmp36_createUserActionFromTable = state.k35();
|
|
1663
|
+
var tmp$ret$56;
|
|
1664
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser' call
|
|
1665
|
+
var tmp33_createActionForUser = tmp36_createUserActionFromTable.id;
|
|
1666
|
+
var tmp34_createActionForUser = getGameCreator(tmp36_createUserActionFromTable.players).m2p();
|
|
1667
|
+
var tmp$ret$41;
|
|
1940
1668
|
// Inline function 'kotlin.collections.map' call
|
|
1941
|
-
var
|
|
1942
|
-
var tmp$ret$
|
|
1669
|
+
var tmp27_map = tmp36_createUserActionFromTable.players;
|
|
1670
|
+
var tmp$ret$40;
|
|
1943
1671
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1944
|
-
var
|
|
1945
|
-
var
|
|
1946
|
-
while (
|
|
1947
|
-
var
|
|
1948
|
-
var tmp$ret$
|
|
1949
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1950
|
-
tmp$ret$
|
|
1951
|
-
|
|
1672
|
+
var tmp26_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp27_map, 10));
|
|
1673
|
+
var tmp0_iterator_8 = tmp27_map.f();
|
|
1674
|
+
while (tmp0_iterator_8.g()) {
|
|
1675
|
+
var item_4 = tmp0_iterator_8.h();
|
|
1676
|
+
var tmp$ret$39;
|
|
1677
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createUserActionFromTable.<anonymous>' call
|
|
1678
|
+
tmp$ret$39 = to(item_4.m2p(), item_4.c39_1.r2q_1);
|
|
1679
|
+
tmp26_mapTo.a(tmp$ret$39);
|
|
1952
1680
|
}
|
|
1953
|
-
tmp$ret$
|
|
1954
|
-
tmp$ret$
|
|
1955
|
-
var
|
|
1956
|
-
var
|
|
1957
|
-
var tmp$ret$107;
|
|
1958
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
1959
|
-
var tmp$ret$106;
|
|
1681
|
+
tmp$ret$40 = tmp26_mapTo;
|
|
1682
|
+
tmp$ret$41 = tmp$ret$40;
|
|
1683
|
+
var tmp35_createActionForUser = tmp$ret$41;
|
|
1684
|
+
var tmp$ret$55;
|
|
1960
1685
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1961
|
-
var tmp$ret$
|
|
1686
|
+
var tmp$ret$47;
|
|
1962
1687
|
// Inline function 'kotlin.collections.map' call
|
|
1963
|
-
var tmp$ret$
|
|
1688
|
+
var tmp$ret$44;
|
|
1964
1689
|
// Inline function 'kotlin.collections.filter' call
|
|
1965
|
-
var tmp$ret$
|
|
1690
|
+
var tmp$ret$43;
|
|
1966
1691
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1967
|
-
var
|
|
1968
|
-
var
|
|
1969
|
-
while (
|
|
1970
|
-
var
|
|
1971
|
-
var tmp$ret$
|
|
1972
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1973
|
-
tmp$ret$
|
|
1974
|
-
if (tmp$ret$
|
|
1975
|
-
|
|
1692
|
+
var tmp28_filterTo = ArrayList_init_$Create$();
|
|
1693
|
+
var tmp0_iterator_9 = tmp35_createActionForUser.f();
|
|
1694
|
+
while (tmp0_iterator_9.g()) {
|
|
1695
|
+
var element_3 = tmp0_iterator_9.h();
|
|
1696
|
+
var tmp$ret$42;
|
|
1697
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1698
|
+
tmp$ret$42 = element_3.a4_1.isLive;
|
|
1699
|
+
if (tmp$ret$42) {
|
|
1700
|
+
tmp28_filterTo.a(element_3);
|
|
1976
1701
|
}
|
|
1977
1702
|
}
|
|
1978
|
-
tmp$ret$
|
|
1979
|
-
tmp$ret$
|
|
1980
|
-
var
|
|
1981
|
-
var tmp$ret$
|
|
1703
|
+
tmp$ret$43 = tmp28_filterTo;
|
|
1704
|
+
tmp$ret$44 = tmp$ret$43;
|
|
1705
|
+
var tmp30_map = tmp$ret$44;
|
|
1706
|
+
var tmp$ret$46;
|
|
1982
1707
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1983
|
-
var
|
|
1984
|
-
var
|
|
1985
|
-
while (
|
|
1986
|
-
var
|
|
1987
|
-
var tmp$ret$
|
|
1988
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
1989
|
-
tmp$ret$
|
|
1990
|
-
|
|
1708
|
+
var tmp29_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp30_map, 10));
|
|
1709
|
+
var tmp0_iterator_10 = tmp30_map.f();
|
|
1710
|
+
while (tmp0_iterator_10.g()) {
|
|
1711
|
+
var item_5 = tmp0_iterator_10.h();
|
|
1712
|
+
var tmp$ret$45;
|
|
1713
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1714
|
+
tmp$ret$45 = item_5.z3_1;
|
|
1715
|
+
tmp29_mapTo.a(tmp$ret$45);
|
|
1991
1716
|
}
|
|
1992
|
-
tmp$ret$
|
|
1993
|
-
tmp$ret$
|
|
1994
|
-
var
|
|
1995
|
-
var tmp$ret$
|
|
1717
|
+
tmp$ret$46 = tmp29_mapTo;
|
|
1718
|
+
tmp$ret$47 = tmp$ret$46;
|
|
1719
|
+
var tmp32_mapNotNull = tmp$ret$47;
|
|
1720
|
+
var tmp$ret$54;
|
|
1996
1721
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1997
|
-
var
|
|
1722
|
+
var tmp31_mapNotNullTo = ArrayList_init_$Create$();
|
|
1998
1723
|
// Inline function 'kotlin.collections.forEach' call
|
|
1999
|
-
var
|
|
2000
|
-
while (
|
|
2001
|
-
var
|
|
1724
|
+
var tmp0_iterator_11 = tmp32_mapNotNull.f();
|
|
1725
|
+
while (tmp0_iterator_11.g()) {
|
|
1726
|
+
var element_4 = tmp0_iterator_11.h();
|
|
2002
1727
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2003
|
-
var tmp$ret$
|
|
2004
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2005
|
-
var tmp$ret$
|
|
1728
|
+
var tmp$ret$52;
|
|
1729
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1730
|
+
var tmp$ret$51;
|
|
2006
1731
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2007
|
-
var
|
|
2008
|
-
var tmp$ret$101;
|
|
1732
|
+
var tmp$ret$50;
|
|
2009
1733
|
// Inline function 'kotlin.collections.map' call
|
|
2010
|
-
var tmp$ret$
|
|
1734
|
+
var tmp$ret$49;
|
|
2011
1735
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2012
|
-
var
|
|
2013
|
-
var
|
|
2014
|
-
while (
|
|
2015
|
-
var
|
|
2016
|
-
var tmp$ret$
|
|
2017
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2018
|
-
tmp$ret$
|
|
2019
|
-
|
|
1736
|
+
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp35_createActionForUser, 10));
|
|
1737
|
+
var tmp0_iterator_12 = tmp35_createActionForUser.f();
|
|
1738
|
+
while (tmp0_iterator_12.g()) {
|
|
1739
|
+
var item_6 = tmp0_iterator_12.h();
|
|
1740
|
+
var tmp$ret$48;
|
|
1741
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>.<anonymous>' call
|
|
1742
|
+
tmp$ret$48 = item_6.z3_1;
|
|
1743
|
+
tmp0_mapTo_2.a(tmp$ret$48);
|
|
2020
1744
|
}
|
|
2021
|
-
tmp$ret$
|
|
2022
|
-
tmp$ret$
|
|
2023
|
-
var
|
|
2024
|
-
|
|
2025
|
-
tmp$ret$
|
|
2026
|
-
|
|
2027
|
-
|
|
1745
|
+
tmp$ret$49 = tmp0_mapTo_2;
|
|
1746
|
+
tmp$ret$50 = tmp$ret$49;
|
|
1747
|
+
var tmp0_playersIds_1 = tmp$ret$50;
|
|
1748
|
+
var tmp37__anonymous__g99adz = UserActionPayload_init_$Create$(tmp33_createActionForUser, tmp34_createActionForUser, element_4, tmp0_playersIds_1);
|
|
1749
|
+
tmp$ret$51 = mapToClient_11(tmp0__anonymous__q1qw7t, tmp37__anonymous__g99adz);
|
|
1750
|
+
tmp$ret$52 = tmp$ret$51;
|
|
1751
|
+
var tmp0_safe_receiver_1 = tmp$ret$52;
|
|
1752
|
+
if (tmp0_safe_receiver_1 == null)
|
|
2028
1753
|
null;
|
|
2029
1754
|
else {
|
|
2030
|
-
var tmp$ret$
|
|
1755
|
+
var tmp$ret$53;
|
|
2031
1756
|
// Inline function 'kotlin.let' call
|
|
2032
1757
|
// Inline function 'kotlin.contracts.contract' call
|
|
2033
|
-
|
|
2034
|
-
tmp$ret$
|
|
1758
|
+
tmp31_mapNotNullTo.a(tmp0_safe_receiver_1);
|
|
1759
|
+
tmp$ret$53 = Unit_getInstance();
|
|
2035
1760
|
}
|
|
2036
1761
|
}
|
|
2037
|
-
tmp$ret$
|
|
2038
|
-
tmp$ret$
|
|
2039
|
-
tmp$ret$
|
|
2040
|
-
tmp$ret$
|
|
2041
|
-
tmp = tmp$ret$
|
|
1762
|
+
tmp$ret$54 = tmp31_mapNotNullTo;
|
|
1763
|
+
tmp$ret$55 = tmp$ret$54;
|
|
1764
|
+
tmp$ret$56 = tmp$ret$55;
|
|
1765
|
+
tmp$ret$57 = tmp$ret$56;
|
|
1766
|
+
tmp = tmp$ret$57;
|
|
2042
1767
|
} else {
|
|
2043
1768
|
if (tmp0_subject instanceof SceneActMechanicAction) {
|
|
2044
|
-
var tmp$ret$
|
|
2045
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2046
|
-
var
|
|
2047
|
-
var
|
|
2048
|
-
|
|
1769
|
+
var tmp$ret$76;
|
|
1770
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createUserActionFromTable' call
|
|
1771
|
+
var tmp48_createUserActionFromTable = state.k35();
|
|
1772
|
+
var tmp$ret$75;
|
|
1773
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser' call
|
|
1774
|
+
var tmp45_createActionForUser = tmp48_createUserActionFromTable.id;
|
|
1775
|
+
var tmp46_createActionForUser = getGameCreator(tmp48_createUserActionFromTable.players).m2p();
|
|
1776
|
+
var tmp$ret$60;
|
|
2049
1777
|
// Inline function 'kotlin.collections.map' call
|
|
2050
|
-
var
|
|
2051
|
-
var tmp$ret$
|
|
1778
|
+
var tmp39_map = tmp48_createUserActionFromTable.players;
|
|
1779
|
+
var tmp$ret$59;
|
|
2052
1780
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2053
|
-
var
|
|
2054
|
-
var
|
|
2055
|
-
while (
|
|
2056
|
-
var
|
|
2057
|
-
var tmp$ret$
|
|
2058
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2059
|
-
tmp$ret$
|
|
2060
|
-
|
|
1781
|
+
var tmp38_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp39_map, 10));
|
|
1782
|
+
var tmp0_iterator_13 = tmp39_map.f();
|
|
1783
|
+
while (tmp0_iterator_13.g()) {
|
|
1784
|
+
var item_7 = tmp0_iterator_13.h();
|
|
1785
|
+
var tmp$ret$58;
|
|
1786
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createUserActionFromTable.<anonymous>' call
|
|
1787
|
+
tmp$ret$58 = to(item_7.m2p(), item_7.c39_1.r2q_1);
|
|
1788
|
+
tmp38_mapTo.a(tmp$ret$58);
|
|
2061
1789
|
}
|
|
2062
|
-
tmp$ret$
|
|
2063
|
-
tmp$ret$
|
|
2064
|
-
var
|
|
2065
|
-
var
|
|
2066
|
-
var tmp$ret$126;
|
|
2067
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2068
|
-
var tmp$ret$125;
|
|
1790
|
+
tmp$ret$59 = tmp38_mapTo;
|
|
1791
|
+
tmp$ret$60 = tmp$ret$59;
|
|
1792
|
+
var tmp47_createActionForUser = tmp$ret$60;
|
|
1793
|
+
var tmp$ret$74;
|
|
2069
1794
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2070
|
-
var tmp$ret$
|
|
1795
|
+
var tmp$ret$66;
|
|
2071
1796
|
// Inline function 'kotlin.collections.map' call
|
|
2072
|
-
var tmp$ret$
|
|
1797
|
+
var tmp$ret$63;
|
|
2073
1798
|
// Inline function 'kotlin.collections.filter' call
|
|
2074
|
-
var tmp$ret$
|
|
1799
|
+
var tmp$ret$62;
|
|
2075
1800
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2076
|
-
var
|
|
2077
|
-
var
|
|
2078
|
-
while (
|
|
2079
|
-
var
|
|
2080
|
-
var tmp$ret$
|
|
2081
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2082
|
-
tmp$ret$
|
|
2083
|
-
if (tmp$ret$
|
|
2084
|
-
|
|
1801
|
+
var tmp40_filterTo = ArrayList_init_$Create$();
|
|
1802
|
+
var tmp0_iterator_14 = tmp47_createActionForUser.f();
|
|
1803
|
+
while (tmp0_iterator_14.g()) {
|
|
1804
|
+
var element_5 = tmp0_iterator_14.h();
|
|
1805
|
+
var tmp$ret$61;
|
|
1806
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1807
|
+
tmp$ret$61 = element_5.a4_1.isLive;
|
|
1808
|
+
if (tmp$ret$61) {
|
|
1809
|
+
tmp40_filterTo.a(element_5);
|
|
2085
1810
|
}
|
|
2086
1811
|
}
|
|
2087
|
-
tmp$ret$
|
|
2088
|
-
tmp$ret$
|
|
2089
|
-
var
|
|
2090
|
-
var tmp$ret$
|
|
1812
|
+
tmp$ret$62 = tmp40_filterTo;
|
|
1813
|
+
tmp$ret$63 = tmp$ret$62;
|
|
1814
|
+
var tmp42_map = tmp$ret$63;
|
|
1815
|
+
var tmp$ret$65;
|
|
2091
1816
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2092
|
-
var
|
|
2093
|
-
var
|
|
2094
|
-
while (
|
|
2095
|
-
var
|
|
2096
|
-
var tmp$ret$
|
|
2097
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2098
|
-
tmp$ret$
|
|
2099
|
-
|
|
1817
|
+
var tmp41_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp42_map, 10));
|
|
1818
|
+
var tmp0_iterator_15 = tmp42_map.f();
|
|
1819
|
+
while (tmp0_iterator_15.g()) {
|
|
1820
|
+
var item_8 = tmp0_iterator_15.h();
|
|
1821
|
+
var tmp$ret$64;
|
|
1822
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1823
|
+
tmp$ret$64 = item_8.z3_1;
|
|
1824
|
+
tmp41_mapTo.a(tmp$ret$64);
|
|
2100
1825
|
}
|
|
2101
|
-
tmp$ret$
|
|
2102
|
-
tmp$ret$
|
|
2103
|
-
var
|
|
2104
|
-
var tmp$ret$
|
|
1826
|
+
tmp$ret$65 = tmp41_mapTo;
|
|
1827
|
+
tmp$ret$66 = tmp$ret$65;
|
|
1828
|
+
var tmp44_mapNotNull = tmp$ret$66;
|
|
1829
|
+
var tmp$ret$73;
|
|
2105
1830
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2106
|
-
var
|
|
1831
|
+
var tmp43_mapNotNullTo = ArrayList_init_$Create$();
|
|
2107
1832
|
// Inline function 'kotlin.collections.forEach' call
|
|
2108
|
-
var
|
|
2109
|
-
while (
|
|
2110
|
-
var
|
|
1833
|
+
var tmp0_iterator_16 = tmp44_mapNotNull.f();
|
|
1834
|
+
while (tmp0_iterator_16.g()) {
|
|
1835
|
+
var element_6 = tmp0_iterator_16.h();
|
|
2111
1836
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2112
|
-
var tmp$ret$
|
|
2113
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2114
|
-
var tmp$ret$
|
|
1837
|
+
var tmp$ret$71;
|
|
1838
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1839
|
+
var tmp$ret$70;
|
|
2115
1840
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2116
|
-
var
|
|
2117
|
-
var tmp$ret$120;
|
|
1841
|
+
var tmp$ret$69;
|
|
2118
1842
|
// Inline function 'kotlin.collections.map' call
|
|
2119
|
-
var tmp$ret$
|
|
1843
|
+
var tmp$ret$68;
|
|
2120
1844
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2121
|
-
var
|
|
2122
|
-
var
|
|
2123
|
-
while (
|
|
2124
|
-
var
|
|
2125
|
-
var tmp$ret$
|
|
2126
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2127
|
-
tmp$ret$
|
|
2128
|
-
|
|
1845
|
+
var tmp0_mapTo_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp47_createActionForUser, 10));
|
|
1846
|
+
var tmp0_iterator_17 = tmp47_createActionForUser.f();
|
|
1847
|
+
while (tmp0_iterator_17.g()) {
|
|
1848
|
+
var item_9 = tmp0_iterator_17.h();
|
|
1849
|
+
var tmp$ret$67;
|
|
1850
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>.<anonymous>' call
|
|
1851
|
+
tmp$ret$67 = item_9.z3_1;
|
|
1852
|
+
tmp0_mapTo_3.a(tmp$ret$67);
|
|
2129
1853
|
}
|
|
2130
|
-
tmp$ret$
|
|
2131
|
-
tmp$ret$
|
|
2132
|
-
var
|
|
2133
|
-
|
|
2134
|
-
tmp$ret$
|
|
2135
|
-
|
|
2136
|
-
|
|
1854
|
+
tmp$ret$68 = tmp0_mapTo_3;
|
|
1855
|
+
tmp$ret$69 = tmp$ret$68;
|
|
1856
|
+
var tmp0_playersIds_2 = tmp$ret$69;
|
|
1857
|
+
var tmp49__anonymous__ybmgc6 = UserActionPayload_init_$Create$(tmp45_createActionForUser, tmp46_createActionForUser, element_6, tmp0_playersIds_2);
|
|
1858
|
+
tmp$ret$70 = mapToClient_10(tmp0__anonymous__q1qw7t, tmp49__anonymous__ybmgc6);
|
|
1859
|
+
tmp$ret$71 = tmp$ret$70;
|
|
1860
|
+
var tmp0_safe_receiver_2 = tmp$ret$71;
|
|
1861
|
+
if (tmp0_safe_receiver_2 == null)
|
|
2137
1862
|
null;
|
|
2138
1863
|
else {
|
|
2139
|
-
var tmp$ret$
|
|
1864
|
+
var tmp$ret$72;
|
|
2140
1865
|
// Inline function 'kotlin.let' call
|
|
2141
1866
|
// Inline function 'kotlin.contracts.contract' call
|
|
2142
|
-
|
|
2143
|
-
tmp$ret$
|
|
1867
|
+
tmp43_mapNotNullTo.a(tmp0_safe_receiver_2);
|
|
1868
|
+
tmp$ret$72 = Unit_getInstance();
|
|
2144
1869
|
}
|
|
2145
1870
|
}
|
|
2146
|
-
tmp$ret$
|
|
2147
|
-
tmp$ret$
|
|
2148
|
-
tmp$ret$
|
|
2149
|
-
tmp$ret$
|
|
2150
|
-
tmp = tmp$ret$
|
|
1871
|
+
tmp$ret$73 = tmp43_mapNotNullTo;
|
|
1872
|
+
tmp$ret$74 = tmp$ret$73;
|
|
1873
|
+
tmp$ret$75 = tmp$ret$74;
|
|
1874
|
+
tmp$ret$76 = tmp$ret$75;
|
|
1875
|
+
tmp = tmp$ret$76;
|
|
2151
1876
|
} else {
|
|
2152
1877
|
if (tmp0_subject instanceof TeamsDataMechanicAction) {
|
|
2153
|
-
var tmp$ret$
|
|
2154
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2155
|
-
var
|
|
2156
|
-
var
|
|
2157
|
-
|
|
1878
|
+
var tmp$ret$95;
|
|
1879
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createUserActionFromTable' call
|
|
1880
|
+
var tmp60_createUserActionFromTable = state.k35();
|
|
1881
|
+
var tmp$ret$94;
|
|
1882
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser' call
|
|
1883
|
+
var tmp57_createActionForUser = tmp60_createUserActionFromTable.id;
|
|
1884
|
+
var tmp58_createActionForUser = getGameCreator(tmp60_createUserActionFromTable.players).m2p();
|
|
1885
|
+
var tmp$ret$79;
|
|
2158
1886
|
// Inline function 'kotlin.collections.map' call
|
|
2159
|
-
var
|
|
2160
|
-
var tmp$ret$
|
|
1887
|
+
var tmp51_map = tmp60_createUserActionFromTable.players;
|
|
1888
|
+
var tmp$ret$78;
|
|
2161
1889
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2162
|
-
var
|
|
2163
|
-
var
|
|
2164
|
-
while (
|
|
2165
|
-
var
|
|
2166
|
-
var tmp$ret$
|
|
2167
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2168
|
-
tmp$ret$
|
|
2169
|
-
|
|
1890
|
+
var tmp50_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp51_map, 10));
|
|
1891
|
+
var tmp0_iterator_18 = tmp51_map.f();
|
|
1892
|
+
while (tmp0_iterator_18.g()) {
|
|
1893
|
+
var item_10 = tmp0_iterator_18.h();
|
|
1894
|
+
var tmp$ret$77;
|
|
1895
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createUserActionFromTable.<anonymous>' call
|
|
1896
|
+
tmp$ret$77 = to(item_10.m2p(), item_10.c39_1.r2q_1);
|
|
1897
|
+
tmp50_mapTo.a(tmp$ret$77);
|
|
2170
1898
|
}
|
|
2171
|
-
tmp$ret$
|
|
2172
|
-
tmp$ret$
|
|
2173
|
-
var
|
|
2174
|
-
var
|
|
2175
|
-
var tmp$ret$145;
|
|
2176
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2177
|
-
var tmp$ret$144;
|
|
1899
|
+
tmp$ret$78 = tmp50_mapTo;
|
|
1900
|
+
tmp$ret$79 = tmp$ret$78;
|
|
1901
|
+
var tmp59_createActionForUser = tmp$ret$79;
|
|
1902
|
+
var tmp$ret$93;
|
|
2178
1903
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2179
|
-
var tmp$ret$
|
|
1904
|
+
var tmp$ret$85;
|
|
2180
1905
|
// Inline function 'kotlin.collections.map' call
|
|
2181
|
-
var tmp$ret$
|
|
1906
|
+
var tmp$ret$82;
|
|
2182
1907
|
// Inline function 'kotlin.collections.filter' call
|
|
2183
|
-
var tmp$ret$
|
|
1908
|
+
var tmp$ret$81;
|
|
2184
1909
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2185
|
-
var
|
|
2186
|
-
var
|
|
2187
|
-
while (
|
|
2188
|
-
var
|
|
2189
|
-
var tmp$ret$
|
|
2190
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2191
|
-
tmp$ret$
|
|
2192
|
-
if (tmp$ret$
|
|
2193
|
-
|
|
1910
|
+
var tmp52_filterTo = ArrayList_init_$Create$();
|
|
1911
|
+
var tmp0_iterator_19 = tmp59_createActionForUser.f();
|
|
1912
|
+
while (tmp0_iterator_19.g()) {
|
|
1913
|
+
var element_7 = tmp0_iterator_19.h();
|
|
1914
|
+
var tmp$ret$80;
|
|
1915
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1916
|
+
tmp$ret$80 = element_7.a4_1.isLive;
|
|
1917
|
+
if (tmp$ret$80) {
|
|
1918
|
+
tmp52_filterTo.a(element_7);
|
|
2194
1919
|
}
|
|
2195
1920
|
}
|
|
2196
|
-
tmp$ret$
|
|
2197
|
-
tmp$ret$
|
|
2198
|
-
var
|
|
2199
|
-
var tmp$ret$
|
|
1921
|
+
tmp$ret$81 = tmp52_filterTo;
|
|
1922
|
+
tmp$ret$82 = tmp$ret$81;
|
|
1923
|
+
var tmp54_map = tmp$ret$82;
|
|
1924
|
+
var tmp$ret$84;
|
|
2200
1925
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2201
|
-
var
|
|
2202
|
-
var
|
|
2203
|
-
while (
|
|
2204
|
-
var
|
|
2205
|
-
var tmp$ret$
|
|
2206
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2207
|
-
tmp$ret$
|
|
2208
|
-
|
|
1926
|
+
var tmp53_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp54_map, 10));
|
|
1927
|
+
var tmp0_iterator_20 = tmp54_map.f();
|
|
1928
|
+
while (tmp0_iterator_20.g()) {
|
|
1929
|
+
var item_11 = tmp0_iterator_20.h();
|
|
1930
|
+
var tmp$ret$83;
|
|
1931
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1932
|
+
tmp$ret$83 = item_11.z3_1;
|
|
1933
|
+
tmp53_mapTo.a(tmp$ret$83);
|
|
2209
1934
|
}
|
|
2210
|
-
tmp$ret$
|
|
2211
|
-
tmp$ret$
|
|
2212
|
-
var
|
|
2213
|
-
var tmp$ret$
|
|
1935
|
+
tmp$ret$84 = tmp53_mapTo;
|
|
1936
|
+
tmp$ret$85 = tmp$ret$84;
|
|
1937
|
+
var tmp56_mapNotNull = tmp$ret$85;
|
|
1938
|
+
var tmp$ret$92;
|
|
2214
1939
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2215
|
-
var
|
|
1940
|
+
var tmp55_mapNotNullTo = ArrayList_init_$Create$();
|
|
2216
1941
|
// Inline function 'kotlin.collections.forEach' call
|
|
2217
|
-
var
|
|
2218
|
-
while (
|
|
2219
|
-
var
|
|
1942
|
+
var tmp0_iterator_21 = tmp56_mapNotNull.f();
|
|
1943
|
+
while (tmp0_iterator_21.g()) {
|
|
1944
|
+
var element_8 = tmp0_iterator_21.h();
|
|
2220
1945
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2221
|
-
var tmp$ret$
|
|
2222
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2223
|
-
var tmp$ret$
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
var
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
tmp$ret$140 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp73__anonymous__uai7of);
|
|
1946
|
+
var tmp$ret$90;
|
|
1947
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1948
|
+
var tmp$ret$89;
|
|
1949
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1950
|
+
var tmp$ret$88;
|
|
1951
|
+
// Inline function 'kotlin.collections.map' call
|
|
1952
|
+
var tmp$ret$87;
|
|
1953
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1954
|
+
var tmp0_mapTo_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp59_createActionForUser, 10));
|
|
1955
|
+
var tmp0_iterator_22 = tmp59_createActionForUser.f();
|
|
1956
|
+
while (tmp0_iterator_22.g()) {
|
|
1957
|
+
var item_12 = tmp0_iterator_22.h();
|
|
1958
|
+
var tmp$ret$86;
|
|
1959
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>.<anonymous>' call
|
|
1960
|
+
tmp$ret$86 = item_12.z3_1;
|
|
1961
|
+
tmp0_mapTo_4.a(tmp$ret$86);
|
|
1962
|
+
}
|
|
1963
|
+
tmp$ret$87 = tmp0_mapTo_4;
|
|
1964
|
+
tmp$ret$88 = tmp$ret$87;
|
|
1965
|
+
var tmp0_playersIds_3 = tmp$ret$88;
|
|
1966
|
+
var tmp61__anonymous__c851q8 = UserActionPayload_init_$Create$(tmp57_createActionForUser, tmp58_createActionForUser, element_8, tmp0_playersIds_3);
|
|
1967
|
+
var tmp_0;
|
|
1968
|
+
if (this.u7x_1.v35_1 ? getPlayer(state.k35().players, tmp61__anonymous__c851q8.x3k_1).e39_1.i39_1 : false) {
|
|
1969
|
+
tmp_0 = null;
|
|
1970
|
+
} else {
|
|
1971
|
+
tmp_0 = mapToClient_9(tmp0__anonymous__q1qw7t, tmp61__anonymous__c851q8);
|
|
2248
1972
|
}
|
|
2249
|
-
tmp$ret$
|
|
2250
|
-
|
|
2251
|
-
|
|
1973
|
+
tmp$ret$89 = tmp_0;
|
|
1974
|
+
tmp$ret$90 = tmp$ret$89;
|
|
1975
|
+
var tmp0_safe_receiver_3 = tmp$ret$90;
|
|
1976
|
+
if (tmp0_safe_receiver_3 == null)
|
|
2252
1977
|
null;
|
|
2253
1978
|
else {
|
|
2254
|
-
var tmp$ret$
|
|
1979
|
+
var tmp$ret$91;
|
|
2255
1980
|
// Inline function 'kotlin.let' call
|
|
2256
1981
|
// Inline function 'kotlin.contracts.contract' call
|
|
2257
|
-
|
|
2258
|
-
tmp$ret$
|
|
1982
|
+
tmp55_mapNotNullTo.a(tmp0_safe_receiver_3);
|
|
1983
|
+
tmp$ret$91 = Unit_getInstance();
|
|
2259
1984
|
}
|
|
2260
1985
|
}
|
|
2261
|
-
tmp$ret$
|
|
2262
|
-
tmp$ret$
|
|
2263
|
-
tmp$ret$
|
|
2264
|
-
tmp$ret$
|
|
2265
|
-
tmp = tmp$ret$
|
|
1986
|
+
tmp$ret$92 = tmp55_mapNotNullTo;
|
|
1987
|
+
tmp$ret$93 = tmp$ret$92;
|
|
1988
|
+
tmp$ret$94 = tmp$ret$93;
|
|
1989
|
+
tmp$ret$95 = tmp$ret$94;
|
|
1990
|
+
tmp = tmp$ret$95;
|
|
2266
1991
|
} else {
|
|
2267
1992
|
if (tmp0_subject instanceof PlayerReadyMechanicAction) {
|
|
2268
|
-
var tmp$ret$
|
|
2269
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2270
|
-
var
|
|
2271
|
-
var
|
|
2272
|
-
var tmp$ret$
|
|
2273
|
-
// Inline function '
|
|
2274
|
-
var
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
var tmp0_iterator_38 = tmp75_map.f();
|
|
2279
|
-
while (tmp0_iterator_38.g()) {
|
|
2280
|
-
var item_22 = tmp0_iterator_38.h();
|
|
2281
|
-
var tmp$ret$147;
|
|
2282
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2283
|
-
tmp$ret$147 = to(item_22.m2o(), item_22.c38_1.r2p_1);
|
|
2284
|
-
tmp74_mapTo.a(tmp$ret$147);
|
|
2285
|
-
}
|
|
2286
|
-
tmp$ret$148 = tmp74_mapTo;
|
|
2287
|
-
tmp$ret$149 = tmp$ret$148;
|
|
2288
|
-
var tmp1_players_5 = tmp$ret$149;
|
|
2289
|
-
var tmp2_gameCreatorPlayerId_5 = getGameCreator(tmp81_mapToClientActionsFromTable.players).m2o();
|
|
2290
|
-
var tmp$ret$164;
|
|
2291
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2292
|
-
var tmp$ret$163;
|
|
2293
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2294
|
-
var tmp$ret$155;
|
|
2295
|
-
// Inline function 'kotlin.collections.map' call
|
|
2296
|
-
var tmp$ret$152;
|
|
2297
|
-
// Inline function 'kotlin.collections.filter' call
|
|
2298
|
-
var tmp$ret$151;
|
|
2299
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
2300
|
-
var tmp76_filterTo = ArrayList_init_$Create$();
|
|
2301
|
-
var tmp0_iterator_39 = tmp1_players_5.f();
|
|
2302
|
-
while (tmp0_iterator_39.g()) {
|
|
2303
|
-
var element_15 = tmp0_iterator_39.h();
|
|
2304
|
-
var tmp$ret$150;
|
|
2305
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2306
|
-
tmp$ret$150 = element_15.a4_1.isLive;
|
|
2307
|
-
if (tmp$ret$150) {
|
|
2308
|
-
tmp76_filterTo.a(element_15);
|
|
2309
|
-
}
|
|
2310
|
-
}
|
|
2311
|
-
tmp$ret$151 = tmp76_filterTo;
|
|
2312
|
-
tmp$ret$152 = tmp$ret$151;
|
|
2313
|
-
var tmp78_map = tmp$ret$152;
|
|
2314
|
-
var tmp$ret$154;
|
|
2315
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2316
|
-
var tmp77_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp78_map, 10));
|
|
2317
|
-
var tmp0_iterator_40 = tmp78_map.f();
|
|
2318
|
-
while (tmp0_iterator_40.g()) {
|
|
2319
|
-
var item_23 = tmp0_iterator_40.h();
|
|
2320
|
-
var tmp$ret$153;
|
|
2321
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2322
|
-
tmp$ret$153 = item_23.z3_1;
|
|
2323
|
-
tmp77_mapTo.a(tmp$ret$153);
|
|
2324
|
-
}
|
|
2325
|
-
tmp$ret$154 = tmp77_mapTo;
|
|
2326
|
-
tmp$ret$155 = tmp$ret$154;
|
|
2327
|
-
var tmp80_mapNotNull = tmp$ret$155;
|
|
2328
|
-
var tmp$ret$162;
|
|
2329
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2330
|
-
var tmp79_mapNotNullTo = ArrayList_init_$Create$();
|
|
2331
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
2332
|
-
var tmp0_iterator_41 = tmp80_mapNotNull.f();
|
|
2333
|
-
while (tmp0_iterator_41.g()) {
|
|
2334
|
-
var element_16 = tmp0_iterator_41.h();
|
|
2335
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2336
|
-
var tmp$ret$160;
|
|
2337
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2338
|
-
var tmp$ret$159;
|
|
2339
|
-
$l$block_0: {
|
|
2340
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2341
|
-
var tmp_8 = Companion_getInstance_1();
|
|
2342
|
-
var tmp$ret$158;
|
|
2343
|
-
// Inline function 'kotlin.collections.map' call
|
|
2344
|
-
var tmp$ret$157;
|
|
2345
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2346
|
-
var tmp0_mapTo_8 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_players_5, 10));
|
|
2347
|
-
var tmp0_iterator_42 = tmp1_players_5.f();
|
|
2348
|
-
while (tmp0_iterator_42.g()) {
|
|
2349
|
-
var item_24 = tmp0_iterator_42.h();
|
|
2350
|
-
var tmp$ret$156;
|
|
2351
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2352
|
-
tmp$ret$156 = item_24.z3_1;
|
|
2353
|
-
tmp0_mapTo_8.a(tmp$ret$156);
|
|
2354
|
-
}
|
|
2355
|
-
tmp$ret$157 = tmp0_mapTo_8;
|
|
2356
|
-
tmp$ret$158 = tmp$ret$157;
|
|
2357
|
-
var tmp82__anonymous__xstg01 = tmp_8.g4o(element_16, tmp2_gameCreatorPlayerId_5, tmp0_roomId_5, tmp$ret$158);
|
|
2358
|
-
if (this.r7w_1.v34_1 ? tmp82__anonymous__xstg01.x3j_1 === tmp0__anonymous__q1qw7t.f3x_1 : false) {
|
|
2359
|
-
tmp$ret$159 = null;
|
|
2360
|
-
break $l$block_0;
|
|
2361
|
-
}
|
|
2362
|
-
tmp$ret$159 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp82__anonymous__xstg01);
|
|
2363
|
-
}
|
|
2364
|
-
tmp$ret$160 = tmp$ret$159;
|
|
2365
|
-
var tmp0_safe_receiver_7 = tmp$ret$160;
|
|
2366
|
-
if (tmp0_safe_receiver_7 == null)
|
|
2367
|
-
null;
|
|
2368
|
-
else {
|
|
2369
|
-
var tmp$ret$161;
|
|
2370
|
-
// Inline function 'kotlin.let' call
|
|
2371
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2372
|
-
tmp79_mapNotNullTo.a(tmp0_safe_receiver_7);
|
|
2373
|
-
tmp$ret$161 = Unit_getInstance();
|
|
2374
|
-
}
|
|
2375
|
-
}
|
|
2376
|
-
tmp$ret$162 = tmp79_mapNotNullTo;
|
|
2377
|
-
tmp$ret$163 = tmp$ret$162;
|
|
2378
|
-
tmp$ret$164 = tmp$ret$163;
|
|
2379
|
-
tmp$ret$165 = tmp$ret$164;
|
|
2380
|
-
tmp = tmp$ret$165;
|
|
1993
|
+
var tmp$ret$97;
|
|
1994
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
1995
|
+
var tmp62_createRoomActionFromTable = state.k35();
|
|
1996
|
+
var tmp63_createRoomActionFromTable = this.u7x_1.v35_1 ? tmp0__anonymous__q1qw7t.f3y_1 : null;
|
|
1997
|
+
var tmp$ret$96;
|
|
1998
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1999
|
+
var tmp64__anonymous__qs6zct = new RoomActionPayload(tmp62_createRoomActionFromTable.id, tmp63_createRoomActionFromTable);
|
|
2000
|
+
tmp$ret$96 = mapToClient_8(tmp0__anonymous__q1qw7t, tmp64__anonymous__qs6zct);
|
|
2001
|
+
tmp$ret$97 = listOfNotNull_0(tmp$ret$96);
|
|
2002
|
+
tmp = tmp$ret$97;
|
|
2381
2003
|
} else {
|
|
2382
2004
|
if (tmp0_subject instanceof SuitChoiceMechanicAction) {
|
|
2383
|
-
var tmp$ret$
|
|
2384
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2385
|
-
var
|
|
2386
|
-
var
|
|
2387
|
-
var tmp$ret$
|
|
2388
|
-
// Inline function '
|
|
2389
|
-
var
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
var tmp0_iterator_43 = tmp84_map.f();
|
|
2394
|
-
while (tmp0_iterator_43.g()) {
|
|
2395
|
-
var item_25 = tmp0_iterator_43.h();
|
|
2396
|
-
var tmp$ret$166;
|
|
2397
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2398
|
-
tmp$ret$166 = to(item_25.m2o(), item_25.c38_1.r2p_1);
|
|
2399
|
-
tmp83_mapTo.a(tmp$ret$166);
|
|
2400
|
-
}
|
|
2401
|
-
tmp$ret$167 = tmp83_mapTo;
|
|
2402
|
-
tmp$ret$168 = tmp$ret$167;
|
|
2403
|
-
var tmp1_players_6 = tmp$ret$168;
|
|
2404
|
-
var tmp2_gameCreatorPlayerId_6 = getGameCreator(tmp90_mapToClientActionsFromTable.players).m2o();
|
|
2405
|
-
var tmp$ret$183;
|
|
2406
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2407
|
-
var tmp$ret$182;
|
|
2408
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2409
|
-
var tmp$ret$174;
|
|
2410
|
-
// Inline function 'kotlin.collections.map' call
|
|
2411
|
-
var tmp$ret$171;
|
|
2412
|
-
// Inline function 'kotlin.collections.filter' call
|
|
2413
|
-
var tmp$ret$170;
|
|
2414
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
2415
|
-
var tmp85_filterTo = ArrayList_init_$Create$();
|
|
2416
|
-
var tmp0_iterator_44 = tmp1_players_6.f();
|
|
2417
|
-
while (tmp0_iterator_44.g()) {
|
|
2418
|
-
var element_17 = tmp0_iterator_44.h();
|
|
2419
|
-
var tmp$ret$169;
|
|
2420
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2421
|
-
tmp$ret$169 = element_17.a4_1.isLive;
|
|
2422
|
-
if (tmp$ret$169) {
|
|
2423
|
-
tmp85_filterTo.a(element_17);
|
|
2424
|
-
}
|
|
2425
|
-
}
|
|
2426
|
-
tmp$ret$170 = tmp85_filterTo;
|
|
2427
|
-
tmp$ret$171 = tmp$ret$170;
|
|
2428
|
-
var tmp87_map = tmp$ret$171;
|
|
2429
|
-
var tmp$ret$173;
|
|
2430
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2431
|
-
var tmp86_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp87_map, 10));
|
|
2432
|
-
var tmp0_iterator_45 = tmp87_map.f();
|
|
2433
|
-
while (tmp0_iterator_45.g()) {
|
|
2434
|
-
var item_26 = tmp0_iterator_45.h();
|
|
2435
|
-
var tmp$ret$172;
|
|
2436
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2437
|
-
tmp$ret$172 = item_26.z3_1;
|
|
2438
|
-
tmp86_mapTo.a(tmp$ret$172);
|
|
2439
|
-
}
|
|
2440
|
-
tmp$ret$173 = tmp86_mapTo;
|
|
2441
|
-
tmp$ret$174 = tmp$ret$173;
|
|
2442
|
-
var tmp89_mapNotNull = tmp$ret$174;
|
|
2443
|
-
var tmp$ret$181;
|
|
2444
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2445
|
-
var tmp88_mapNotNullTo = ArrayList_init_$Create$();
|
|
2446
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
2447
|
-
var tmp0_iterator_46 = tmp89_mapNotNull.f();
|
|
2448
|
-
while (tmp0_iterator_46.g()) {
|
|
2449
|
-
var element_18 = tmp0_iterator_46.h();
|
|
2450
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2451
|
-
var tmp$ret$179;
|
|
2452
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2453
|
-
var tmp$ret$178;
|
|
2454
|
-
$l$block_1: {
|
|
2455
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2456
|
-
var tmp_9 = Companion_getInstance_1();
|
|
2457
|
-
var tmp$ret$177;
|
|
2458
|
-
// Inline function 'kotlin.collections.map' call
|
|
2459
|
-
var tmp$ret$176;
|
|
2460
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2461
|
-
var tmp0_mapTo_9 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_players_6, 10));
|
|
2462
|
-
var tmp0_iterator_47 = tmp1_players_6.f();
|
|
2463
|
-
while (tmp0_iterator_47.g()) {
|
|
2464
|
-
var item_27 = tmp0_iterator_47.h();
|
|
2465
|
-
var tmp$ret$175;
|
|
2466
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2467
|
-
tmp$ret$175 = item_27.z3_1;
|
|
2468
|
-
tmp0_mapTo_9.a(tmp$ret$175);
|
|
2469
|
-
}
|
|
2470
|
-
tmp$ret$176 = tmp0_mapTo_9;
|
|
2471
|
-
tmp$ret$177 = tmp$ret$176;
|
|
2472
|
-
var tmp91__anonymous__xpzdnh = tmp_9.g4o(element_18, tmp2_gameCreatorPlayerId_6, tmp0_roomId_6, tmp$ret$177);
|
|
2473
|
-
if (this.r7w_1.v34_1 ? tmp91__anonymous__xpzdnh.x3j_1 === tmp0__anonymous__q1qw7t.g3x_1 : false) {
|
|
2474
|
-
tmp$ret$178 = null;
|
|
2475
|
-
break $l$block_1;
|
|
2476
|
-
}
|
|
2477
|
-
tmp$ret$178 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp91__anonymous__xpzdnh);
|
|
2478
|
-
}
|
|
2479
|
-
tmp$ret$179 = tmp$ret$178;
|
|
2480
|
-
var tmp0_safe_receiver_8 = tmp$ret$179;
|
|
2481
|
-
if (tmp0_safe_receiver_8 == null)
|
|
2482
|
-
null;
|
|
2483
|
-
else {
|
|
2484
|
-
var tmp$ret$180;
|
|
2485
|
-
// Inline function 'kotlin.let' call
|
|
2486
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2487
|
-
tmp88_mapNotNullTo.a(tmp0_safe_receiver_8);
|
|
2488
|
-
tmp$ret$180 = Unit_getInstance();
|
|
2489
|
-
}
|
|
2490
|
-
}
|
|
2491
|
-
tmp$ret$181 = tmp88_mapNotNullTo;
|
|
2492
|
-
tmp$ret$182 = tmp$ret$181;
|
|
2493
|
-
tmp$ret$183 = tmp$ret$182;
|
|
2494
|
-
tmp$ret$184 = tmp$ret$183;
|
|
2495
|
-
tmp = tmp$ret$184;
|
|
2005
|
+
var tmp$ret$99;
|
|
2006
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2007
|
+
var tmp65_createRoomActionFromTable = state.k35();
|
|
2008
|
+
var tmp66_createRoomActionFromTable = this.u7x_1.v35_1 ? tmp0__anonymous__q1qw7t.g3y_1 : null;
|
|
2009
|
+
var tmp$ret$98;
|
|
2010
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2011
|
+
var tmp67__anonymous__tov4zq = new RoomActionPayload(tmp65_createRoomActionFromTable.id, tmp66_createRoomActionFromTable);
|
|
2012
|
+
tmp$ret$98 = mapToClient_7(tmp0__anonymous__q1qw7t, tmp67__anonymous__tov4zq);
|
|
2013
|
+
tmp$ret$99 = listOfNotNull_0(tmp$ret$98);
|
|
2014
|
+
tmp = tmp$ret$99;
|
|
2496
2015
|
} else {
|
|
2497
2016
|
if (tmp0_subject instanceof TrumpMechanicAction) {
|
|
2498
|
-
var tmp$ret$
|
|
2499
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2500
|
-
var
|
|
2501
|
-
var
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
var tmp92_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp93_map, 10));
|
|
2508
|
-
var tmp0_iterator_48 = tmp93_map.f();
|
|
2509
|
-
while (tmp0_iterator_48.g()) {
|
|
2510
|
-
var item_28 = tmp0_iterator_48.h();
|
|
2511
|
-
var tmp$ret$185;
|
|
2512
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2513
|
-
tmp$ret$185 = to(item_28.m2o(), item_28.c38_1.r2p_1);
|
|
2514
|
-
tmp92_mapTo.a(tmp$ret$185);
|
|
2515
|
-
}
|
|
2516
|
-
tmp$ret$186 = tmp92_mapTo;
|
|
2517
|
-
tmp$ret$187 = tmp$ret$186;
|
|
2518
|
-
var tmp1_players_7 = tmp$ret$187;
|
|
2519
|
-
var tmp2_gameCreatorPlayerId_7 = getGameCreator(tmp99_mapToClientActionsFromTable.players).m2o();
|
|
2520
|
-
var tmp$ret$202;
|
|
2521
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2522
|
-
var tmp$ret$201;
|
|
2523
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2524
|
-
var tmp$ret$193;
|
|
2525
|
-
// Inline function 'kotlin.collections.map' call
|
|
2526
|
-
var tmp$ret$190;
|
|
2527
|
-
// Inline function 'kotlin.collections.filter' call
|
|
2528
|
-
var tmp$ret$189;
|
|
2529
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
2530
|
-
var tmp94_filterTo = ArrayList_init_$Create$();
|
|
2531
|
-
var tmp0_iterator_49 = tmp1_players_7.f();
|
|
2532
|
-
while (tmp0_iterator_49.g()) {
|
|
2533
|
-
var element_19 = tmp0_iterator_49.h();
|
|
2534
|
-
var tmp$ret$188;
|
|
2535
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2536
|
-
tmp$ret$188 = element_19.a4_1.isLive;
|
|
2537
|
-
if (tmp$ret$188) {
|
|
2538
|
-
tmp94_filterTo.a(element_19);
|
|
2539
|
-
}
|
|
2540
|
-
}
|
|
2541
|
-
tmp$ret$189 = tmp94_filterTo;
|
|
2542
|
-
tmp$ret$190 = tmp$ret$189;
|
|
2543
|
-
var tmp96_map = tmp$ret$190;
|
|
2544
|
-
var tmp$ret$192;
|
|
2545
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2546
|
-
var tmp95_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp96_map, 10));
|
|
2547
|
-
var tmp0_iterator_50 = tmp96_map.f();
|
|
2548
|
-
while (tmp0_iterator_50.g()) {
|
|
2549
|
-
var item_29 = tmp0_iterator_50.h();
|
|
2550
|
-
var tmp$ret$191;
|
|
2551
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2552
|
-
tmp$ret$191 = item_29.z3_1;
|
|
2553
|
-
tmp95_mapTo.a(tmp$ret$191);
|
|
2554
|
-
}
|
|
2555
|
-
tmp$ret$192 = tmp95_mapTo;
|
|
2556
|
-
tmp$ret$193 = tmp$ret$192;
|
|
2557
|
-
var tmp98_mapNotNull = tmp$ret$193;
|
|
2558
|
-
var tmp$ret$200;
|
|
2559
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2560
|
-
var tmp97_mapNotNullTo = ArrayList_init_$Create$();
|
|
2561
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
2562
|
-
var tmp0_iterator_51 = tmp98_mapNotNull.f();
|
|
2563
|
-
while (tmp0_iterator_51.g()) {
|
|
2564
|
-
var element_20 = tmp0_iterator_51.h();
|
|
2565
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2566
|
-
var tmp$ret$198;
|
|
2567
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2568
|
-
var tmp$ret$197;
|
|
2569
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2570
|
-
var tmp_10 = Companion_getInstance_1();
|
|
2571
|
-
var tmp$ret$196;
|
|
2572
|
-
// Inline function 'kotlin.collections.map' call
|
|
2573
|
-
var tmp$ret$195;
|
|
2574
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2575
|
-
var tmp0_mapTo_10 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_players_7, 10));
|
|
2576
|
-
var tmp0_iterator_52 = tmp1_players_7.f();
|
|
2577
|
-
while (tmp0_iterator_52.g()) {
|
|
2578
|
-
var item_30 = tmp0_iterator_52.h();
|
|
2579
|
-
var tmp$ret$194;
|
|
2580
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2581
|
-
tmp$ret$194 = item_30.z3_1;
|
|
2582
|
-
tmp0_mapTo_10.a(tmp$ret$194);
|
|
2583
|
-
}
|
|
2584
|
-
tmp$ret$195 = tmp0_mapTo_10;
|
|
2585
|
-
tmp$ret$196 = tmp$ret$195;
|
|
2586
|
-
var tmp100__anonymous__60mmw = tmp_10.g4o(element_20, tmp2_gameCreatorPlayerId_7, tmp0_roomId_7, tmp$ret$196);
|
|
2587
|
-
tmp$ret$197 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp100__anonymous__60mmw);
|
|
2588
|
-
tmp$ret$198 = tmp$ret$197;
|
|
2589
|
-
var tmp0_safe_receiver_9 = tmp$ret$198;
|
|
2590
|
-
if (tmp0_safe_receiver_9 == null)
|
|
2591
|
-
null;
|
|
2592
|
-
else {
|
|
2593
|
-
var tmp$ret$199;
|
|
2594
|
-
// Inline function 'kotlin.let' call
|
|
2595
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2596
|
-
tmp97_mapNotNullTo.a(tmp0_safe_receiver_9);
|
|
2597
|
-
tmp$ret$199 = Unit_getInstance();
|
|
2598
|
-
}
|
|
2599
|
-
}
|
|
2600
|
-
tmp$ret$200 = tmp97_mapNotNullTo;
|
|
2601
|
-
tmp$ret$201 = tmp$ret$200;
|
|
2602
|
-
tmp$ret$202 = tmp$ret$201;
|
|
2603
|
-
tmp$ret$203 = tmp$ret$202;
|
|
2604
|
-
tmp = tmp$ret$203;
|
|
2017
|
+
var tmp$ret$101;
|
|
2018
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2019
|
+
var tmp68_createRoomActionFromTable = state.k35();
|
|
2020
|
+
var tmp$ret$100;
|
|
2021
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2022
|
+
var tmp69__anonymous__jzhuko = new RoomActionPayload(tmp68_createRoomActionFromTable.id, null);
|
|
2023
|
+
tmp$ret$100 = mapToClient_6(tmp0__anonymous__q1qw7t, tmp69__anonymous__jzhuko);
|
|
2024
|
+
tmp$ret$101 = listOfNotNull_0(tmp$ret$100);
|
|
2025
|
+
tmp = tmp$ret$101;
|
|
2605
2026
|
} else {
|
|
2606
2027
|
if (tmp0_subject instanceof CombinationChoiceMechanicAction) {
|
|
2607
|
-
var tmp$ret$
|
|
2608
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2609
|
-
var
|
|
2610
|
-
var
|
|
2611
|
-
var tmp$ret$
|
|
2612
|
-
// Inline function '
|
|
2613
|
-
var
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
var tmp0_iterator_53 = tmp102_map.f();
|
|
2618
|
-
while (tmp0_iterator_53.g()) {
|
|
2619
|
-
var item_31 = tmp0_iterator_53.h();
|
|
2620
|
-
var tmp$ret$204;
|
|
2621
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2622
|
-
tmp$ret$204 = to(item_31.m2o(), item_31.c38_1.r2p_1);
|
|
2623
|
-
tmp101_mapTo.a(tmp$ret$204);
|
|
2624
|
-
}
|
|
2625
|
-
tmp$ret$205 = tmp101_mapTo;
|
|
2626
|
-
tmp$ret$206 = tmp$ret$205;
|
|
2627
|
-
var tmp1_players_8 = tmp$ret$206;
|
|
2628
|
-
var tmp2_gameCreatorPlayerId_8 = getGameCreator(tmp108_mapToClientActionsFromTable.players).m2o();
|
|
2629
|
-
var tmp$ret$221;
|
|
2630
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2631
|
-
var tmp$ret$220;
|
|
2632
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2633
|
-
var tmp$ret$212;
|
|
2634
|
-
// Inline function 'kotlin.collections.map' call
|
|
2635
|
-
var tmp$ret$209;
|
|
2636
|
-
// Inline function 'kotlin.collections.filter' call
|
|
2637
|
-
var tmp$ret$208;
|
|
2638
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
2639
|
-
var tmp103_filterTo = ArrayList_init_$Create$();
|
|
2640
|
-
var tmp0_iterator_54 = tmp1_players_8.f();
|
|
2641
|
-
while (tmp0_iterator_54.g()) {
|
|
2642
|
-
var element_21 = tmp0_iterator_54.h();
|
|
2643
|
-
var tmp$ret$207;
|
|
2644
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2645
|
-
tmp$ret$207 = element_21.a4_1.isLive;
|
|
2646
|
-
if (tmp$ret$207) {
|
|
2647
|
-
tmp103_filterTo.a(element_21);
|
|
2648
|
-
}
|
|
2649
|
-
}
|
|
2650
|
-
tmp$ret$208 = tmp103_filterTo;
|
|
2651
|
-
tmp$ret$209 = tmp$ret$208;
|
|
2652
|
-
var tmp105_map = tmp$ret$209;
|
|
2653
|
-
var tmp$ret$211;
|
|
2654
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2655
|
-
var tmp104_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp105_map, 10));
|
|
2656
|
-
var tmp0_iterator_55 = tmp105_map.f();
|
|
2657
|
-
while (tmp0_iterator_55.g()) {
|
|
2658
|
-
var item_32 = tmp0_iterator_55.h();
|
|
2659
|
-
var tmp$ret$210;
|
|
2660
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2661
|
-
tmp$ret$210 = item_32.z3_1;
|
|
2662
|
-
tmp104_mapTo.a(tmp$ret$210);
|
|
2663
|
-
}
|
|
2664
|
-
tmp$ret$211 = tmp104_mapTo;
|
|
2665
|
-
tmp$ret$212 = tmp$ret$211;
|
|
2666
|
-
var tmp107_mapNotNull = tmp$ret$212;
|
|
2667
|
-
var tmp$ret$219;
|
|
2668
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2669
|
-
var tmp106_mapNotNullTo = ArrayList_init_$Create$();
|
|
2670
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
2671
|
-
var tmp0_iterator_56 = tmp107_mapNotNull.f();
|
|
2672
|
-
while (tmp0_iterator_56.g()) {
|
|
2673
|
-
var element_22 = tmp0_iterator_56.h();
|
|
2674
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2675
|
-
var tmp$ret$217;
|
|
2676
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2677
|
-
var tmp$ret$216;
|
|
2678
|
-
$l$block_2: {
|
|
2679
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2680
|
-
var tmp_11 = Companion_getInstance_1();
|
|
2681
|
-
var tmp$ret$215;
|
|
2682
|
-
// Inline function 'kotlin.collections.map' call
|
|
2683
|
-
var tmp$ret$214;
|
|
2684
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2685
|
-
var tmp0_mapTo_11 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_players_8, 10));
|
|
2686
|
-
var tmp0_iterator_57 = tmp1_players_8.f();
|
|
2687
|
-
while (tmp0_iterator_57.g()) {
|
|
2688
|
-
var item_33 = tmp0_iterator_57.h();
|
|
2689
|
-
var tmp$ret$213;
|
|
2690
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2691
|
-
tmp$ret$213 = item_33.z3_1;
|
|
2692
|
-
tmp0_mapTo_11.a(tmp$ret$213);
|
|
2693
|
-
}
|
|
2694
|
-
tmp$ret$214 = tmp0_mapTo_11;
|
|
2695
|
-
tmp$ret$215 = tmp$ret$214;
|
|
2696
|
-
var tmp109__anonymous__r6xmgh = tmp_11.g4o(element_22, tmp2_gameCreatorPlayerId_8, tmp0_roomId_8, tmp$ret$215);
|
|
2697
|
-
if (this.r7w_1.v34_1 ? tmp109__anonymous__r6xmgh.x3j_1 === tmp0__anonymous__q1qw7t.l3x_1 : false) {
|
|
2698
|
-
tmp$ret$216 = null;
|
|
2699
|
-
break $l$block_2;
|
|
2700
|
-
}
|
|
2701
|
-
tmp$ret$216 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp109__anonymous__r6xmgh);
|
|
2702
|
-
}
|
|
2703
|
-
tmp$ret$217 = tmp$ret$216;
|
|
2704
|
-
var tmp0_safe_receiver_10 = tmp$ret$217;
|
|
2705
|
-
if (tmp0_safe_receiver_10 == null)
|
|
2706
|
-
null;
|
|
2707
|
-
else {
|
|
2708
|
-
var tmp$ret$218;
|
|
2709
|
-
// Inline function 'kotlin.let' call
|
|
2710
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2711
|
-
tmp106_mapNotNullTo.a(tmp0_safe_receiver_10);
|
|
2712
|
-
tmp$ret$218 = Unit_getInstance();
|
|
2713
|
-
}
|
|
2714
|
-
}
|
|
2715
|
-
tmp$ret$219 = tmp106_mapNotNullTo;
|
|
2716
|
-
tmp$ret$220 = tmp$ret$219;
|
|
2717
|
-
tmp$ret$221 = tmp$ret$220;
|
|
2718
|
-
tmp$ret$222 = tmp$ret$221;
|
|
2719
|
-
tmp = tmp$ret$222;
|
|
2028
|
+
var tmp$ret$103;
|
|
2029
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2030
|
+
var tmp70_createRoomActionFromTable = state.k35();
|
|
2031
|
+
var tmp71_createRoomActionFromTable = this.u7x_1.v35_1 ? tmp0__anonymous__q1qw7t.l3y_1 : null;
|
|
2032
|
+
var tmp$ret$102;
|
|
2033
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2034
|
+
var tmp72__anonymous__pftkgw = new RoomActionPayload(tmp70_createRoomActionFromTable.id, tmp71_createRoomActionFromTable);
|
|
2035
|
+
tmp$ret$102 = mapToClient_5(tmp0__anonymous__q1qw7t, tmp72__anonymous__pftkgw);
|
|
2036
|
+
tmp$ret$103 = listOfNotNull_0(tmp$ret$102);
|
|
2037
|
+
tmp = tmp$ret$103;
|
|
2720
2038
|
} else {
|
|
2721
2039
|
if (tmp0_subject instanceof PutCardMechanicAction) {
|
|
2722
|
-
var tmp$ret$
|
|
2723
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2724
|
-
var
|
|
2725
|
-
var
|
|
2726
|
-
var tmp$ret$
|
|
2727
|
-
// Inline function '
|
|
2728
|
-
var
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
var tmp0_iterator_58 = tmp111_map.f();
|
|
2733
|
-
while (tmp0_iterator_58.g()) {
|
|
2734
|
-
var item_34 = tmp0_iterator_58.h();
|
|
2735
|
-
var tmp$ret$223;
|
|
2736
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2737
|
-
tmp$ret$223 = to(item_34.m2o(), item_34.c38_1.r2p_1);
|
|
2738
|
-
tmp110_mapTo.a(tmp$ret$223);
|
|
2739
|
-
}
|
|
2740
|
-
tmp$ret$224 = tmp110_mapTo;
|
|
2741
|
-
tmp$ret$225 = tmp$ret$224;
|
|
2742
|
-
var tmp1_players_9 = tmp$ret$225;
|
|
2743
|
-
var tmp2_gameCreatorPlayerId_9 = getGameCreator(tmp117_mapToClientActionsFromTable.players).m2o();
|
|
2744
|
-
var tmp$ret$240;
|
|
2745
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2746
|
-
var tmp$ret$239;
|
|
2747
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2748
|
-
var tmp$ret$231;
|
|
2749
|
-
// Inline function 'kotlin.collections.map' call
|
|
2750
|
-
var tmp$ret$228;
|
|
2751
|
-
// Inline function 'kotlin.collections.filter' call
|
|
2752
|
-
var tmp$ret$227;
|
|
2753
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
2754
|
-
var tmp112_filterTo = ArrayList_init_$Create$();
|
|
2755
|
-
var tmp0_iterator_59 = tmp1_players_9.f();
|
|
2756
|
-
while (tmp0_iterator_59.g()) {
|
|
2757
|
-
var element_23 = tmp0_iterator_59.h();
|
|
2758
|
-
var tmp$ret$226;
|
|
2759
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2760
|
-
tmp$ret$226 = element_23.a4_1.isLive;
|
|
2761
|
-
if (tmp$ret$226) {
|
|
2762
|
-
tmp112_filterTo.a(element_23);
|
|
2763
|
-
}
|
|
2764
|
-
}
|
|
2765
|
-
tmp$ret$227 = tmp112_filterTo;
|
|
2766
|
-
tmp$ret$228 = tmp$ret$227;
|
|
2767
|
-
var tmp114_map = tmp$ret$228;
|
|
2768
|
-
var tmp$ret$230;
|
|
2769
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2770
|
-
var tmp113_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp114_map, 10));
|
|
2771
|
-
var tmp0_iterator_60 = tmp114_map.f();
|
|
2772
|
-
while (tmp0_iterator_60.g()) {
|
|
2773
|
-
var item_35 = tmp0_iterator_60.h();
|
|
2774
|
-
var tmp$ret$229;
|
|
2775
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2776
|
-
tmp$ret$229 = item_35.z3_1;
|
|
2777
|
-
tmp113_mapTo.a(tmp$ret$229);
|
|
2778
|
-
}
|
|
2779
|
-
tmp$ret$230 = tmp113_mapTo;
|
|
2780
|
-
tmp$ret$231 = tmp$ret$230;
|
|
2781
|
-
var tmp116_mapNotNull = tmp$ret$231;
|
|
2782
|
-
var tmp$ret$238;
|
|
2783
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2784
|
-
var tmp115_mapNotNullTo = ArrayList_init_$Create$();
|
|
2785
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
2786
|
-
var tmp0_iterator_61 = tmp116_mapNotNull.f();
|
|
2787
|
-
while (tmp0_iterator_61.g()) {
|
|
2788
|
-
var element_24 = tmp0_iterator_61.h();
|
|
2789
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2790
|
-
var tmp$ret$236;
|
|
2791
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2792
|
-
var tmp$ret$235;
|
|
2793
|
-
$l$block_3: {
|
|
2794
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2795
|
-
var tmp_12 = Companion_getInstance_1();
|
|
2796
|
-
var tmp$ret$234;
|
|
2797
|
-
// Inline function 'kotlin.collections.map' call
|
|
2798
|
-
var tmp$ret$233;
|
|
2799
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2800
|
-
var tmp0_mapTo_12 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_players_9, 10));
|
|
2801
|
-
var tmp0_iterator_62 = tmp1_players_9.f();
|
|
2802
|
-
while (tmp0_iterator_62.g()) {
|
|
2803
|
-
var item_36 = tmp0_iterator_62.h();
|
|
2804
|
-
var tmp$ret$232;
|
|
2805
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2806
|
-
tmp$ret$232 = item_36.z3_1;
|
|
2807
|
-
tmp0_mapTo_12.a(tmp$ret$232);
|
|
2808
|
-
}
|
|
2809
|
-
tmp$ret$233 = tmp0_mapTo_12;
|
|
2810
|
-
tmp$ret$234 = tmp$ret$233;
|
|
2811
|
-
var tmp118__anonymous__nome4v = tmp_12.g4o(element_24, tmp2_gameCreatorPlayerId_9, tmp0_roomId_9, tmp$ret$234);
|
|
2812
|
-
if (serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$_anonymous_$backwardActions_2rsutw(this.r7w_1, tmp118__anonymous__nome4v, tmp0__anonymous__q1qw7t) ? !serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$_anonymous_$autoStepLastCard_q0g8c9(this.s7w_1, this.t7w_1, state, tmp118__anonymous__nome4v) : false) {
|
|
2813
|
-
tmp$ret$235 = null;
|
|
2814
|
-
break $l$block_3;
|
|
2815
|
-
}
|
|
2816
|
-
tmp$ret$235 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp118__anonymous__nome4v);
|
|
2817
|
-
}
|
|
2818
|
-
tmp$ret$236 = tmp$ret$235;
|
|
2819
|
-
var tmp0_safe_receiver_11 = tmp$ret$236;
|
|
2820
|
-
if (tmp0_safe_receiver_11 == null)
|
|
2821
|
-
null;
|
|
2822
|
-
else {
|
|
2823
|
-
var tmp$ret$237;
|
|
2824
|
-
// Inline function 'kotlin.let' call
|
|
2825
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2826
|
-
tmp115_mapNotNullTo.a(tmp0_safe_receiver_11);
|
|
2827
|
-
tmp$ret$237 = Unit_getInstance();
|
|
2828
|
-
}
|
|
2829
|
-
}
|
|
2830
|
-
tmp$ret$238 = tmp115_mapNotNullTo;
|
|
2831
|
-
tmp$ret$239 = tmp$ret$238;
|
|
2832
|
-
tmp$ret$240 = tmp$ret$239;
|
|
2833
|
-
tmp$ret$241 = tmp$ret$240;
|
|
2834
|
-
tmp = tmp$ret$241;
|
|
2040
|
+
var tmp$ret$105;
|
|
2041
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2042
|
+
var tmp73_createRoomActionFromTable = state.k35();
|
|
2043
|
+
var tmp74_createRoomActionFromTable = (serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$backwardActions_1e7uk5(this.u7x_1) ? !serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$autoStepLastCard_d4tzgw(this.v7x_1, this.w7x_1, state, tmp0__anonymous__q1qw7t.m2p()) : false) ? tmp0__anonymous__q1qw7t.m2p() : null;
|
|
2044
|
+
var tmp$ret$104;
|
|
2045
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2046
|
+
var tmp75__anonymous__v18jvn = new RoomActionPayload(tmp73_createRoomActionFromTable.id, tmp74_createRoomActionFromTable);
|
|
2047
|
+
tmp$ret$104 = mapToClient_4(tmp0__anonymous__q1qw7t, tmp75__anonymous__v18jvn);
|
|
2048
|
+
tmp$ret$105 = listOfNotNull_0(tmp$ret$104);
|
|
2049
|
+
tmp = tmp$ret$105;
|
|
2835
2050
|
} else {
|
|
2836
2051
|
if (tmp0_subject instanceof PickUpBribeMechanicAction) {
|
|
2837
|
-
var tmp$ret$
|
|
2838
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2839
|
-
var
|
|
2840
|
-
var
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
var tmp119_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp120_map, 10));
|
|
2847
|
-
var tmp0_iterator_63 = tmp120_map.f();
|
|
2848
|
-
while (tmp0_iterator_63.g()) {
|
|
2849
|
-
var item_37 = tmp0_iterator_63.h();
|
|
2850
|
-
var tmp$ret$242;
|
|
2851
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2852
|
-
tmp$ret$242 = to(item_37.m2o(), item_37.c38_1.r2p_1);
|
|
2853
|
-
tmp119_mapTo.a(tmp$ret$242);
|
|
2854
|
-
}
|
|
2855
|
-
tmp$ret$243 = tmp119_mapTo;
|
|
2856
|
-
tmp$ret$244 = tmp$ret$243;
|
|
2857
|
-
var tmp1_players_10 = tmp$ret$244;
|
|
2858
|
-
var tmp2_gameCreatorPlayerId_10 = getGameCreator(tmp126_mapToClientActionsFromTable.players).m2o();
|
|
2859
|
-
var tmp$ret$259;
|
|
2860
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2861
|
-
var tmp$ret$258;
|
|
2862
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2863
|
-
var tmp$ret$250;
|
|
2864
|
-
// Inline function 'kotlin.collections.map' call
|
|
2865
|
-
var tmp$ret$247;
|
|
2866
|
-
// Inline function 'kotlin.collections.filter' call
|
|
2867
|
-
var tmp$ret$246;
|
|
2868
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
2869
|
-
var tmp121_filterTo = ArrayList_init_$Create$();
|
|
2870
|
-
var tmp0_iterator_64 = tmp1_players_10.f();
|
|
2871
|
-
while (tmp0_iterator_64.g()) {
|
|
2872
|
-
var element_25 = tmp0_iterator_64.h();
|
|
2873
|
-
var tmp$ret$245;
|
|
2874
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2875
|
-
tmp$ret$245 = element_25.a4_1.isLive;
|
|
2876
|
-
if (tmp$ret$245) {
|
|
2877
|
-
tmp121_filterTo.a(element_25);
|
|
2878
|
-
}
|
|
2879
|
-
}
|
|
2880
|
-
tmp$ret$246 = tmp121_filterTo;
|
|
2881
|
-
tmp$ret$247 = tmp$ret$246;
|
|
2882
|
-
var tmp123_map = tmp$ret$247;
|
|
2883
|
-
var tmp$ret$249;
|
|
2884
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2885
|
-
var tmp122_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp123_map, 10));
|
|
2886
|
-
var tmp0_iterator_65 = tmp123_map.f();
|
|
2887
|
-
while (tmp0_iterator_65.g()) {
|
|
2888
|
-
var item_38 = tmp0_iterator_65.h();
|
|
2889
|
-
var tmp$ret$248;
|
|
2890
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2891
|
-
tmp$ret$248 = item_38.z3_1;
|
|
2892
|
-
tmp122_mapTo.a(tmp$ret$248);
|
|
2893
|
-
}
|
|
2894
|
-
tmp$ret$249 = tmp122_mapTo;
|
|
2895
|
-
tmp$ret$250 = tmp$ret$249;
|
|
2896
|
-
var tmp125_mapNotNull = tmp$ret$250;
|
|
2897
|
-
var tmp$ret$257;
|
|
2898
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2899
|
-
var tmp124_mapNotNullTo = ArrayList_init_$Create$();
|
|
2900
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
2901
|
-
var tmp0_iterator_66 = tmp125_mapNotNull.f();
|
|
2902
|
-
while (tmp0_iterator_66.g()) {
|
|
2903
|
-
var element_26 = tmp0_iterator_66.h();
|
|
2904
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2905
|
-
var tmp$ret$255;
|
|
2906
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2907
|
-
var tmp$ret$254;
|
|
2908
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2909
|
-
var tmp_13 = Companion_getInstance_1();
|
|
2910
|
-
var tmp$ret$253;
|
|
2911
|
-
// Inline function 'kotlin.collections.map' call
|
|
2912
|
-
var tmp$ret$252;
|
|
2913
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2914
|
-
var tmp0_mapTo_13 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_players_10, 10));
|
|
2915
|
-
var tmp0_iterator_67 = tmp1_players_10.f();
|
|
2916
|
-
while (tmp0_iterator_67.g()) {
|
|
2917
|
-
var item_39 = tmp0_iterator_67.h();
|
|
2918
|
-
var tmp$ret$251;
|
|
2919
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2920
|
-
tmp$ret$251 = item_39.z3_1;
|
|
2921
|
-
tmp0_mapTo_13.a(tmp$ret$251);
|
|
2922
|
-
}
|
|
2923
|
-
tmp$ret$252 = tmp0_mapTo_13;
|
|
2924
|
-
tmp$ret$253 = tmp$ret$252;
|
|
2925
|
-
var tmp127__anonymous__k6b5t9 = tmp_13.g4o(element_26, tmp2_gameCreatorPlayerId_10, tmp0_roomId_10, tmp$ret$253);
|
|
2926
|
-
tmp$ret$254 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp127__anonymous__k6b5t9);
|
|
2927
|
-
tmp$ret$255 = tmp$ret$254;
|
|
2928
|
-
var tmp0_safe_receiver_12 = tmp$ret$255;
|
|
2929
|
-
if (tmp0_safe_receiver_12 == null)
|
|
2930
|
-
null;
|
|
2931
|
-
else {
|
|
2932
|
-
var tmp$ret$256;
|
|
2933
|
-
// Inline function 'kotlin.let' call
|
|
2934
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2935
|
-
tmp124_mapNotNullTo.a(tmp0_safe_receiver_12);
|
|
2936
|
-
tmp$ret$256 = Unit_getInstance();
|
|
2937
|
-
}
|
|
2938
|
-
}
|
|
2939
|
-
tmp$ret$257 = tmp124_mapNotNullTo;
|
|
2940
|
-
tmp$ret$258 = tmp$ret$257;
|
|
2941
|
-
tmp$ret$259 = tmp$ret$258;
|
|
2942
|
-
tmp$ret$260 = tmp$ret$259;
|
|
2943
|
-
tmp = tmp$ret$260;
|
|
2052
|
+
var tmp$ret$107;
|
|
2053
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2054
|
+
var tmp76_createRoomActionFromTable = state.k35();
|
|
2055
|
+
var tmp$ret$106;
|
|
2056
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2057
|
+
var tmp77__anonymous__lbv9gl = new RoomActionPayload(tmp76_createRoomActionFromTable.id, null);
|
|
2058
|
+
tmp$ret$106 = mapToClient_3(tmp0__anonymous__q1qw7t, tmp77__anonymous__lbv9gl);
|
|
2059
|
+
tmp$ret$107 = listOfNotNull_0(tmp$ret$106);
|
|
2060
|
+
tmp = tmp$ret$107;
|
|
2944
2061
|
} else {
|
|
2945
2062
|
if (tmp0_subject instanceof WinnerCombinationsMechanicAction) {
|
|
2946
|
-
var tmp$ret$
|
|
2947
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.
|
|
2948
|
-
var
|
|
2949
|
-
var
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
var tmp128_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp129_map, 10));
|
|
2956
|
-
var tmp0_iterator_68 = tmp129_map.f();
|
|
2957
|
-
while (tmp0_iterator_68.g()) {
|
|
2958
|
-
var item_40 = tmp0_iterator_68.h();
|
|
2959
|
-
var tmp$ret$261;
|
|
2960
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2961
|
-
tmp$ret$261 = to(item_40.m2o(), item_40.c38_1.r2p_1);
|
|
2962
|
-
tmp128_mapTo.a(tmp$ret$261);
|
|
2963
|
-
}
|
|
2964
|
-
tmp$ret$262 = tmp128_mapTo;
|
|
2965
|
-
tmp$ret$263 = tmp$ret$262;
|
|
2966
|
-
var tmp1_players_11 = tmp$ret$263;
|
|
2967
|
-
var tmp2_gameCreatorPlayerId_11 = getGameCreator(tmp135_mapToClientActionsFromTable.players).m2o();
|
|
2968
|
-
var tmp$ret$278;
|
|
2969
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2970
|
-
var tmp$ret$277;
|
|
2971
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2972
|
-
var tmp$ret$269;
|
|
2973
|
-
// Inline function 'kotlin.collections.map' call
|
|
2974
|
-
var tmp$ret$266;
|
|
2975
|
-
// Inline function 'kotlin.collections.filter' call
|
|
2976
|
-
var tmp$ret$265;
|
|
2977
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
2978
|
-
var tmp130_filterTo = ArrayList_init_$Create$();
|
|
2979
|
-
var tmp0_iterator_69 = tmp1_players_11.f();
|
|
2980
|
-
while (tmp0_iterator_69.g()) {
|
|
2981
|
-
var element_27 = tmp0_iterator_69.h();
|
|
2982
|
-
var tmp$ret$264;
|
|
2983
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2984
|
-
tmp$ret$264 = element_27.a4_1.isLive;
|
|
2985
|
-
if (tmp$ret$264) {
|
|
2986
|
-
tmp130_filterTo.a(element_27);
|
|
2987
|
-
}
|
|
2988
|
-
}
|
|
2989
|
-
tmp$ret$265 = tmp130_filterTo;
|
|
2990
|
-
tmp$ret$266 = tmp$ret$265;
|
|
2991
|
-
var tmp132_map = tmp$ret$266;
|
|
2992
|
-
var tmp$ret$268;
|
|
2993
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2994
|
-
var tmp131_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp132_map, 10));
|
|
2995
|
-
var tmp0_iterator_70 = tmp132_map.f();
|
|
2996
|
-
while (tmp0_iterator_70.g()) {
|
|
2997
|
-
var item_41 = tmp0_iterator_70.h();
|
|
2998
|
-
var tmp$ret$267;
|
|
2999
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
3000
|
-
tmp$ret$267 = item_41.z3_1;
|
|
3001
|
-
tmp131_mapTo.a(tmp$ret$267);
|
|
3002
|
-
}
|
|
3003
|
-
tmp$ret$268 = tmp131_mapTo;
|
|
3004
|
-
tmp$ret$269 = tmp$ret$268;
|
|
3005
|
-
var tmp134_mapNotNull = tmp$ret$269;
|
|
3006
|
-
var tmp$ret$276;
|
|
3007
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3008
|
-
var tmp133_mapNotNullTo = ArrayList_init_$Create$();
|
|
3009
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
3010
|
-
var tmp0_iterator_71 = tmp134_mapNotNull.f();
|
|
3011
|
-
while (tmp0_iterator_71.g()) {
|
|
3012
|
-
var element_28 = tmp0_iterator_71.h();
|
|
3013
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3014
|
-
var tmp$ret$274;
|
|
3015
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
3016
|
-
var tmp$ret$273;
|
|
3017
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3018
|
-
var tmp_14 = Companion_getInstance_1();
|
|
3019
|
-
var tmp$ret$272;
|
|
3020
|
-
// Inline function 'kotlin.collections.map' call
|
|
3021
|
-
var tmp$ret$271;
|
|
3022
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3023
|
-
var tmp0_mapTo_14 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_players_11, 10));
|
|
3024
|
-
var tmp0_iterator_72 = tmp1_players_11.f();
|
|
3025
|
-
while (tmp0_iterator_72.g()) {
|
|
3026
|
-
var item_42 = tmp0_iterator_72.h();
|
|
3027
|
-
var tmp$ret$270;
|
|
3028
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
3029
|
-
tmp$ret$270 = item_42.z3_1;
|
|
3030
|
-
tmp0_mapTo_14.a(tmp$ret$270);
|
|
3031
|
-
}
|
|
3032
|
-
tmp$ret$271 = tmp0_mapTo_14;
|
|
3033
|
-
tmp$ret$272 = tmp$ret$271;
|
|
3034
|
-
var tmp136__anonymous__gnzxhn = tmp_14.g4o(element_28, tmp2_gameCreatorPlayerId_11, tmp0_roomId_11, tmp$ret$272);
|
|
3035
|
-
tmp$ret$273 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp136__anonymous__gnzxhn);
|
|
3036
|
-
tmp$ret$274 = tmp$ret$273;
|
|
3037
|
-
var tmp0_safe_receiver_13 = tmp$ret$274;
|
|
3038
|
-
if (tmp0_safe_receiver_13 == null)
|
|
3039
|
-
null;
|
|
3040
|
-
else {
|
|
3041
|
-
var tmp$ret$275;
|
|
3042
|
-
// Inline function 'kotlin.let' call
|
|
3043
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3044
|
-
tmp133_mapNotNullTo.a(tmp0_safe_receiver_13);
|
|
3045
|
-
tmp$ret$275 = Unit_getInstance();
|
|
3046
|
-
}
|
|
3047
|
-
}
|
|
3048
|
-
tmp$ret$276 = tmp133_mapNotNullTo;
|
|
3049
|
-
tmp$ret$277 = tmp$ret$276;
|
|
3050
|
-
tmp$ret$278 = tmp$ret$277;
|
|
3051
|
-
tmp$ret$279 = tmp$ret$278;
|
|
3052
|
-
tmp = tmp$ret$279;
|
|
2063
|
+
var tmp$ret$109;
|
|
2064
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2065
|
+
var tmp78_createRoomActionFromTable = state.k35();
|
|
2066
|
+
var tmp$ret$108;
|
|
2067
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2068
|
+
var tmp79__anonymous__bmhz1j = new RoomActionPayload(tmp78_createRoomActionFromTable.id, null);
|
|
2069
|
+
tmp$ret$108 = mapToClient_2(tmp0__anonymous__q1qw7t, tmp79__anonymous__bmhz1j);
|
|
2070
|
+
tmp$ret$109 = listOfNotNull_0(tmp$ret$108);
|
|
2071
|
+
tmp = tmp$ret$109;
|
|
3053
2072
|
} else {
|
|
3054
2073
|
if (tmp0_subject instanceof MessageMechanicAction) {
|
|
3055
|
-
var
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
var
|
|
3059
|
-
var
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
var tmp0_iterator_73 = tmp138_map.f();
|
|
3066
|
-
while (tmp0_iterator_73.g()) {
|
|
3067
|
-
var item_43 = tmp0_iterator_73.h();
|
|
3068
|
-
var tmp$ret$280;
|
|
3069
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
3070
|
-
tmp$ret$280 = to(item_43.m2o(), item_43.c38_1.r2p_1);
|
|
3071
|
-
tmp137_mapTo.a(tmp$ret$280);
|
|
3072
|
-
}
|
|
3073
|
-
tmp$ret$281 = tmp137_mapTo;
|
|
3074
|
-
tmp$ret$282 = tmp$ret$281;
|
|
3075
|
-
var tmp1_players_12 = tmp$ret$282;
|
|
3076
|
-
var tmp2_gameCreatorPlayerId_12 = getGameCreator(tmp144_mapToClientActionsFromTable.players).m2o();
|
|
3077
|
-
var tmp$ret$297;
|
|
3078
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
3079
|
-
var tmp$ret$296;
|
|
3080
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3081
|
-
var tmp$ret$288;
|
|
3082
|
-
// Inline function 'kotlin.collections.map' call
|
|
3083
|
-
var tmp$ret$285;
|
|
3084
|
-
// Inline function 'kotlin.collections.filter' call
|
|
3085
|
-
var tmp$ret$284;
|
|
3086
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
3087
|
-
var tmp139_filterTo = ArrayList_init_$Create$();
|
|
3088
|
-
var tmp0_iterator_74 = tmp1_players_12.f();
|
|
3089
|
-
while (tmp0_iterator_74.g()) {
|
|
3090
|
-
var element_29 = tmp0_iterator_74.h();
|
|
3091
|
-
var tmp$ret$283;
|
|
3092
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
3093
|
-
tmp$ret$283 = element_29.a4_1.isLive;
|
|
3094
|
-
if (tmp$ret$283) {
|
|
3095
|
-
tmp139_filterTo.a(element_29);
|
|
3096
|
-
}
|
|
3097
|
-
}
|
|
3098
|
-
tmp$ret$284 = tmp139_filterTo;
|
|
3099
|
-
tmp$ret$285 = tmp$ret$284;
|
|
3100
|
-
var tmp141_map = tmp$ret$285;
|
|
3101
|
-
var tmp$ret$287;
|
|
3102
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3103
|
-
var tmp140_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp141_map, 10));
|
|
3104
|
-
var tmp0_iterator_75 = tmp141_map.f();
|
|
3105
|
-
while (tmp0_iterator_75.g()) {
|
|
3106
|
-
var item_44 = tmp0_iterator_75.h();
|
|
3107
|
-
var tmp$ret$286;
|
|
3108
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
3109
|
-
tmp$ret$286 = item_44.z3_1;
|
|
3110
|
-
tmp140_mapTo.a(tmp$ret$286);
|
|
2074
|
+
var message = tmp0__anonymous__q1qw7t.v3y_1;
|
|
2075
|
+
var tmp$ret$111;
|
|
2076
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2077
|
+
var tmp80_createRoomActionFromTable = state.k35();
|
|
2078
|
+
var tmp_1;
|
|
2079
|
+
var tmp_2;
|
|
2080
|
+
if (this.u7x_1.v35_1) {
|
|
2081
|
+
tmp_2 = isInterface(message, UserMessage);
|
|
2082
|
+
} else {
|
|
2083
|
+
tmp_2 = false;
|
|
3111
2084
|
}
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3117
|
-
var tmp142_mapNotNullTo = ArrayList_init_$Create$();
|
|
3118
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
3119
|
-
var tmp0_iterator_76 = tmp143_mapNotNull.f();
|
|
3120
|
-
while (tmp0_iterator_76.g()) {
|
|
3121
|
-
var element_30 = tmp0_iterator_76.h();
|
|
3122
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3123
|
-
var tmp$ret$293;
|
|
3124
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
3125
|
-
var tmp$ret$292;
|
|
3126
|
-
$l$block_4: {
|
|
3127
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3128
|
-
var tmp_15 = Companion_getInstance_1();
|
|
3129
|
-
var tmp$ret$291;
|
|
3130
|
-
// Inline function 'kotlin.collections.map' call
|
|
3131
|
-
var tmp$ret$290;
|
|
3132
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3133
|
-
var tmp0_mapTo_15 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_players_12, 10));
|
|
3134
|
-
var tmp0_iterator_77 = tmp1_players_12.f();
|
|
3135
|
-
while (tmp0_iterator_77.g()) {
|
|
3136
|
-
var item_45 = tmp0_iterator_77.h();
|
|
3137
|
-
var tmp$ret$289;
|
|
3138
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
3139
|
-
tmp$ret$289 = item_45.z3_1;
|
|
3140
|
-
tmp0_mapTo_15.a(tmp$ret$289);
|
|
3141
|
-
}
|
|
3142
|
-
tmp$ret$290 = tmp0_mapTo_15;
|
|
3143
|
-
tmp$ret$291 = tmp$ret$290;
|
|
3144
|
-
var tmp145__anonymous__d5op61 = tmp_15.g4o(element_30, tmp2_gameCreatorPlayerId_12, tmp0_roomId_12, tmp$ret$291);
|
|
3145
|
-
var message = tmp0__anonymous__q1qw7t.v3x_1;
|
|
3146
|
-
if (this.r7w_1.v34_1) {
|
|
3147
|
-
var tmp_16;
|
|
3148
|
-
if (isInterface(message, UserMessage)) {
|
|
3149
|
-
tmp_16 = tmp145__anonymous__d5op61.x3j_1 === message.m2o();
|
|
3150
|
-
} else {
|
|
3151
|
-
tmp_16 = false;
|
|
3152
|
-
}
|
|
3153
|
-
if (tmp_16) {
|
|
3154
|
-
tmp$ret$292 = null;
|
|
3155
|
-
break $l$block_4;
|
|
3156
|
-
}
|
|
3157
|
-
}
|
|
3158
|
-
tmp$ret$292 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp145__anonymous__d5op61);
|
|
3159
|
-
}
|
|
3160
|
-
tmp$ret$293 = tmp$ret$292;
|
|
3161
|
-
var tmp0_safe_receiver_14 = tmp$ret$293;
|
|
3162
|
-
if (tmp0_safe_receiver_14 == null)
|
|
3163
|
-
null;
|
|
3164
|
-
else {
|
|
3165
|
-
var tmp$ret$294;
|
|
3166
|
-
// Inline function 'kotlin.let' call
|
|
3167
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3168
|
-
tmp142_mapNotNullTo.a(tmp0_safe_receiver_14);
|
|
3169
|
-
tmp$ret$294 = Unit_getInstance();
|
|
3170
|
-
}
|
|
2085
|
+
if (tmp_2) {
|
|
2086
|
+
tmp_1 = message.m2p();
|
|
2087
|
+
} else {
|
|
2088
|
+
tmp_1 = null;
|
|
3171
2089
|
}
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
tmp =
|
|
2090
|
+
var tmp81_createRoomActionFromTable = tmp_1;
|
|
2091
|
+
var tmp$ret$110;
|
|
2092
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2093
|
+
var tmp82__anonymous__xstg01 = new RoomActionPayload(tmp80_createRoomActionFromTable.id, tmp81_createRoomActionFromTable);
|
|
2094
|
+
tmp$ret$110 = mapToClient_1(tmp0__anonymous__q1qw7t, tmp82__anonymous__xstg01);
|
|
2095
|
+
tmp$ret$111 = listOfNotNull_0(tmp$ret$110);
|
|
2096
|
+
tmp = tmp$ret$111;
|
|
3177
2097
|
} else {
|
|
3178
2098
|
if (tmp0_subject instanceof PlayerConnectionChangedMechanicAction) {
|
|
3179
|
-
var
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
3194
|
-
tmp$ret$299 = to(item_46.m2o(), item_46.c38_1.r2p_1);
|
|
3195
|
-
tmp146_mapTo.a(tmp$ret$299);
|
|
3196
|
-
}
|
|
3197
|
-
tmp$ret$300 = tmp146_mapTo;
|
|
3198
|
-
tmp$ret$301 = tmp$ret$300;
|
|
3199
|
-
var tmp1_players_13 = tmp$ret$301;
|
|
3200
|
-
var tmp2_gameCreatorPlayerId_13 = getGameCreator(tmp153_mapToClientActionsFromTable.players).m2o();
|
|
3201
|
-
var tmp$ret$316;
|
|
3202
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
3203
|
-
var tmp$ret$315;
|
|
3204
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3205
|
-
var tmp$ret$307;
|
|
3206
|
-
// Inline function 'kotlin.collections.map' call
|
|
3207
|
-
var tmp$ret$304;
|
|
3208
|
-
// Inline function 'kotlin.collections.filter' call
|
|
3209
|
-
var tmp$ret$303;
|
|
3210
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
3211
|
-
var tmp148_filterTo = ArrayList_init_$Create$();
|
|
3212
|
-
var tmp0_iterator_79 = tmp1_players_13.f();
|
|
3213
|
-
while (tmp0_iterator_79.g()) {
|
|
3214
|
-
var element_31 = tmp0_iterator_79.h();
|
|
3215
|
-
var tmp$ret$302;
|
|
3216
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
3217
|
-
tmp$ret$302 = element_31.a4_1.isLive;
|
|
3218
|
-
if (tmp$ret$302) {
|
|
3219
|
-
tmp148_filterTo.a(element_31);
|
|
3220
|
-
}
|
|
3221
|
-
}
|
|
3222
|
-
tmp$ret$303 = tmp148_filterTo;
|
|
3223
|
-
tmp$ret$304 = tmp$ret$303;
|
|
3224
|
-
var tmp150_map = tmp$ret$304;
|
|
3225
|
-
var tmp$ret$306;
|
|
3226
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3227
|
-
var tmp149_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp150_map, 10));
|
|
3228
|
-
var tmp0_iterator_80 = tmp150_map.f();
|
|
3229
|
-
while (tmp0_iterator_80.g()) {
|
|
3230
|
-
var item_47 = tmp0_iterator_80.h();
|
|
3231
|
-
var tmp$ret$305;
|
|
3232
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
3233
|
-
tmp$ret$305 = item_47.z3_1;
|
|
3234
|
-
tmp149_mapTo.a(tmp$ret$305);
|
|
3235
|
-
}
|
|
3236
|
-
tmp$ret$306 = tmp149_mapTo;
|
|
3237
|
-
tmp$ret$307 = tmp$ret$306;
|
|
3238
|
-
var tmp152_mapNotNull = tmp$ret$307;
|
|
3239
|
-
var tmp$ret$314;
|
|
3240
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3241
|
-
var tmp151_mapNotNullTo = ArrayList_init_$Create$();
|
|
3242
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
3243
|
-
var tmp0_iterator_81 = tmp152_mapNotNull.f();
|
|
3244
|
-
while (tmp0_iterator_81.g()) {
|
|
3245
|
-
var element_32 = tmp0_iterator_81.h();
|
|
3246
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3247
|
-
var tmp$ret$312;
|
|
3248
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
3249
|
-
var tmp$ret$311;
|
|
3250
|
-
$l$block_6: {
|
|
3251
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3252
|
-
var tmp_17 = Companion_getInstance_1();
|
|
3253
|
-
var tmp$ret$310;
|
|
3254
|
-
// Inline function 'kotlin.collections.map' call
|
|
3255
|
-
var tmp$ret$309;
|
|
3256
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3257
|
-
var tmp0_mapTo_16 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_players_13, 10));
|
|
3258
|
-
var tmp0_iterator_82 = tmp1_players_13.f();
|
|
3259
|
-
while (tmp0_iterator_82.g()) {
|
|
3260
|
-
var item_48 = tmp0_iterator_82.h();
|
|
3261
|
-
var tmp$ret$308;
|
|
3262
|
-
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
3263
|
-
tmp$ret$308 = item_48.z3_1;
|
|
3264
|
-
tmp0_mapTo_16.a(tmp$ret$308);
|
|
3265
|
-
}
|
|
3266
|
-
tmp$ret$309 = tmp0_mapTo_16;
|
|
3267
|
-
tmp$ret$310 = tmp$ret$309;
|
|
3268
|
-
var tmp154__anonymous__9ndguf = tmp_17.g4o(element_32, tmp2_gameCreatorPlayerId_13, tmp0_roomId_13, tmp$ret$310);
|
|
3269
|
-
if (!tmp0__anonymous__q1qw7t.shouldNotifyPlayers) {
|
|
3270
|
-
tmp$ret$311 = null;
|
|
3271
|
-
break $l$block_6;
|
|
3272
|
-
}
|
|
3273
|
-
if (tmp0__anonymous__q1qw7t.playerId === tmp154__anonymous__9ndguf.x3j_1) {
|
|
3274
|
-
tmp$ret$311 = null;
|
|
3275
|
-
break $l$block_6;
|
|
3276
|
-
}
|
|
3277
|
-
tmp$ret$311 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp154__anonymous__9ndguf);
|
|
3278
|
-
}
|
|
3279
|
-
tmp$ret$312 = tmp$ret$311;
|
|
3280
|
-
var tmp0_safe_receiver_15 = tmp$ret$312;
|
|
3281
|
-
if (tmp0_safe_receiver_15 == null)
|
|
3282
|
-
null;
|
|
3283
|
-
else {
|
|
3284
|
-
var tmp$ret$313;
|
|
3285
|
-
// Inline function 'kotlin.let' call
|
|
3286
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3287
|
-
tmp151_mapNotNullTo.a(tmp0_safe_receiver_15);
|
|
3288
|
-
tmp$ret$313 = Unit_getInstance();
|
|
3289
|
-
}
|
|
2099
|
+
var tmp_3;
|
|
2100
|
+
if (!tmp0__anonymous__q1qw7t.shouldNotifyPlayers) {
|
|
2101
|
+
tmp_3 = emptyList();
|
|
2102
|
+
} else {
|
|
2103
|
+
var tmp$ret$113;
|
|
2104
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2105
|
+
var tmp83_createRoomActionFromTable = state.k35();
|
|
2106
|
+
var tmp84_createRoomActionFromTable = tmp0__anonymous__q1qw7t.playerId;
|
|
2107
|
+
var tmp$ret$112;
|
|
2108
|
+
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2109
|
+
var tmp85__anonymous__mo8oci = new RoomActionPayload(tmp83_createRoomActionFromTable.id, tmp84_createRoomActionFromTable);
|
|
2110
|
+
tmp$ret$112 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp85__anonymous__mo8oci);
|
|
2111
|
+
tmp$ret$113 = listOfNotNull_0(tmp$ret$112);
|
|
2112
|
+
tmp_3 = tmp$ret$113;
|
|
3290
2113
|
}
|
|
3291
|
-
tmp
|
|
3292
|
-
tmp$ret$315 = tmp$ret$314;
|
|
3293
|
-
tmp$ret$316 = tmp$ret$315;
|
|
3294
|
-
tmp$ret$317 = tmp$ret$316;
|
|
3295
|
-
tmp = tmp$ret$317;
|
|
2114
|
+
tmp = tmp_3;
|
|
3296
2115
|
} else {
|
|
3297
2116
|
noWhenBranchMatchedException();
|
|
3298
2117
|
}
|
|
@@ -3313,17 +2132,17 @@
|
|
|
3313
2132
|
}
|
|
3314
2133
|
}
|
|
3315
2134
|
var actionsToSent = tmp;
|
|
3316
|
-
var
|
|
3317
|
-
while (
|
|
3318
|
-
var
|
|
2135
|
+
var tmp0_iterator_23 = actionsToSent.f();
|
|
2136
|
+
while (tmp0_iterator_23.g()) {
|
|
2137
|
+
var element_9 = tmp0_iterator_23.h();
|
|
3319
2138
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3320
|
-
store.dispatch(
|
|
2139
|
+
store.dispatch(element_9);
|
|
3321
2140
|
}
|
|
3322
|
-
tmp$ret$
|
|
2141
|
+
tmp$ret$114 = Unit_getInstance();
|
|
3323
2142
|
next(tmp0__anonymous__q1qw7t);
|
|
3324
2143
|
};
|
|
3325
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
3326
|
-
return this.
|
|
2144
|
+
protoOf(_no_name_provided__qut3iv_0).s2y = function (store, next, action) {
|
|
2145
|
+
return this.r4s(store, next, action);
|
|
3327
2146
|
};
|
|
3328
2147
|
function playerConnectionUpdateMiddleware(reconnectionInteractor) {
|
|
3329
2148
|
var tmp$ret$0;
|
|
@@ -3332,12 +2151,12 @@
|
|
|
3332
2151
|
return tmp$ret$0;
|
|
3333
2152
|
}
|
|
3334
2153
|
function _no_name_provided__qut3iv_1($reconnectionInteractor) {
|
|
3335
|
-
this.
|
|
2154
|
+
this.x7x_1 = $reconnectionInteractor;
|
|
3336
2155
|
}
|
|
3337
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
2156
|
+
protoOf(_no_name_provided__qut3iv_1).r2y = function (action) {
|
|
3338
2157
|
return action instanceof PlayerConnectionUpdateAction;
|
|
3339
2158
|
};
|
|
3340
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
2159
|
+
protoOf(_no_name_provided__qut3iv_1).r4s = function (store, next, action) {
|
|
3341
2160
|
var tmp$ret$0;
|
|
3342
2161
|
$l$block_0: {
|
|
3343
2162
|
// Inline function 'com.debertz.logic.server.redux.middlewares.player.playerConnectionUpdateMiddleware.<anonymous>' call
|
|
@@ -3348,8 +2167,8 @@
|
|
|
3348
2167
|
tmp$ret$0 = Unit_getInstance();
|
|
3349
2168
|
break $l$block_0;
|
|
3350
2169
|
}
|
|
3351
|
-
var player = getPlayer(state.
|
|
3352
|
-
if (tmp0__anonymous__q1qw7t.
|
|
2170
|
+
var player = getPlayer(state.k35().players, tmp0__anonymous__q1qw7t.t4o_1);
|
|
2171
|
+
if (tmp0__anonymous__q1qw7t.s4o_1.isDisconnected ? player.c39_1.r2q_1.isDisconnecting : false) {
|
|
3353
2172
|
next(tmp0__anonymous__q1qw7t);
|
|
3354
2173
|
tmp$ret$0 = Unit_getInstance();
|
|
3355
2174
|
break $l$block_0;
|
|
@@ -3359,7 +2178,7 @@
|
|
|
3359
2178
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
3360
2179
|
var tmp$ret$2;
|
|
3361
2180
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3362
|
-
var tmp1_filterIsInstance = state.
|
|
2181
|
+
var tmp1_filterIsInstance = state.k34_1;
|
|
3363
2182
|
var tmp$ret$1;
|
|
3364
2183
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3365
2184
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
|
|
@@ -3380,7 +2199,7 @@
|
|
|
3380
2199
|
var element_0 = tmp0_iterator_0.h();
|
|
3381
2200
|
var tmp$ret$3;
|
|
3382
2201
|
// Inline function 'com.debertz.logic.server.redux.middlewares.player.playerConnectionUpdateMiddleware.<anonymous>.<anonymous>' call
|
|
3383
|
-
tmp$ret$3 = element_0.
|
|
2202
|
+
tmp$ret$3 = element_0.y7x_1 === tmp0__anonymous__q1qw7t.t4o_1;
|
|
3384
2203
|
if (tmp$ret$3) {
|
|
3385
2204
|
if (found) {
|
|
3386
2205
|
tmp$ret$4 = null;
|
|
@@ -3400,10 +2219,10 @@
|
|
|
3400
2219
|
if (!(reconnectionTimerTag == null)) {
|
|
3401
2220
|
store.dispatch(new StopTimerAction(reconnectionTimerTag));
|
|
3402
2221
|
}
|
|
3403
|
-
if (tmp0__anonymous__q1qw7t.
|
|
3404
|
-
store.dispatch(new PlayerConnectionChangedMechanicAction(tmp0__anonymous__q1qw7t.
|
|
2222
|
+
if (tmp0__anonymous__q1qw7t.s4o_1.isLive) {
|
|
2223
|
+
store.dispatch(new PlayerConnectionChangedMechanicAction(tmp0__anonymous__q1qw7t.t4o_1, PlayerConnectionState_LIVE_getInstance()));
|
|
3405
2224
|
}
|
|
3406
|
-
var actions = this.
|
|
2225
|
+
var actions = this.x7x_1.e7x(tmp0__anonymous__q1qw7t.s4o_1, tmp0__anonymous__q1qw7t.t4o_1, store.state.k35(), tmp0__anonymous__q1qw7t.u4o_1);
|
|
3407
2226
|
// Inline function 'kotlin.collections.forEach' call
|
|
3408
2227
|
var tmp0_iterator_1 = actions.f();
|
|
3409
2228
|
while (tmp0_iterator_1.g()) {
|
|
@@ -3414,8 +2233,8 @@
|
|
|
3414
2233
|
next(tmp0__anonymous__q1qw7t);
|
|
3415
2234
|
}
|
|
3416
2235
|
};
|
|
3417
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
3418
|
-
return this.
|
|
2236
|
+
protoOf(_no_name_provided__qut3iv_1).s2y = function (store, next, action) {
|
|
2237
|
+
return this.r4s(store, next, action);
|
|
3419
2238
|
};
|
|
3420
2239
|
function playerReconnectionWaitingTimerTickMiddleware(reconnectionInteractor) {
|
|
3421
2240
|
var tmp$ret$0;
|
|
@@ -3424,15 +2243,15 @@
|
|
|
3424
2243
|
return tmp$ret$0;
|
|
3425
2244
|
}
|
|
3426
2245
|
function PlayerReconnectionWaitingTimerTag(playerId, state) {
|
|
3427
|
-
this.
|
|
3428
|
-
this.
|
|
2246
|
+
this.y7x_1 = playerId;
|
|
2247
|
+
this.z7x_1 = state;
|
|
3429
2248
|
}
|
|
3430
2249
|
protoOf(PlayerReconnectionWaitingTimerTag).toString = function () {
|
|
3431
|
-
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.
|
|
2250
|
+
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.y7x_1 + ', state=' + this.z7x_1 + ')';
|
|
3432
2251
|
};
|
|
3433
2252
|
protoOf(PlayerReconnectionWaitingTimerTag).hashCode = function () {
|
|
3434
|
-
var result = getStringHashCode(this.
|
|
3435
|
-
result = imul(result, 31) + this.
|
|
2253
|
+
var result = getStringHashCode(this.y7x_1);
|
|
2254
|
+
result = imul(result, 31) + this.z7x_1.hashCode() | 0;
|
|
3436
2255
|
return result;
|
|
3437
2256
|
};
|
|
3438
2257
|
protoOf(PlayerReconnectionWaitingTimerTag).equals = function (other) {
|
|
@@ -3441,25 +2260,25 @@
|
|
|
3441
2260
|
if (!(other instanceof PlayerReconnectionWaitingTimerTag))
|
|
3442
2261
|
return false;
|
|
3443
2262
|
var tmp0_other_with_cast = other instanceof PlayerReconnectionWaitingTimerTag ? other : THROW_CCE();
|
|
3444
|
-
if (!(this.
|
|
2263
|
+
if (!(this.y7x_1 === tmp0_other_with_cast.y7x_1))
|
|
3445
2264
|
return false;
|
|
3446
|
-
if (!this.
|
|
2265
|
+
if (!this.z7x_1.equals(tmp0_other_with_cast.z7x_1))
|
|
3447
2266
|
return false;
|
|
3448
2267
|
return true;
|
|
3449
2268
|
};
|
|
3450
2269
|
function _no_name_provided__qut3iv_2($reconnectionInteractor) {
|
|
3451
|
-
this.
|
|
2270
|
+
this.a7y_1 = $reconnectionInteractor;
|
|
3452
2271
|
}
|
|
3453
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
2272
|
+
protoOf(_no_name_provided__qut3iv_2).r2y = function (action) {
|
|
3454
2273
|
return action instanceof TimerTickAction;
|
|
3455
2274
|
};
|
|
3456
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
2275
|
+
protoOf(_no_name_provided__qut3iv_2).r4s = function (store, next, action) {
|
|
3457
2276
|
// Inline function 'com.debertz.logic.server.redux.middlewares.player.playerReconnectionWaitingTimerTickMiddleware.<anonymous>' call
|
|
3458
2277
|
var tmp0__anonymous__q1qw7t = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
3459
|
-
var timerTag = tmp0__anonymous__q1qw7t.
|
|
2278
|
+
var timerTag = tmp0__anonymous__q1qw7t.f2z_1;
|
|
3460
2279
|
if (timerTag instanceof PlayerReconnectionWaitingTimerTag) {
|
|
3461
2280
|
var state = store.state;
|
|
3462
|
-
var actions = this.
|
|
2281
|
+
var actions = this.a7y_1.e7x(timerTag.z7x_1, timerTag.y7x_1, state.k35(), true);
|
|
3463
2282
|
var tmp$ret$0;
|
|
3464
2283
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3465
2284
|
tmp$ret$0 = !actions.l();
|
|
@@ -3475,8 +2294,8 @@
|
|
|
3475
2294
|
}
|
|
3476
2295
|
next(tmp0__anonymous__q1qw7t);
|
|
3477
2296
|
};
|
|
3478
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3479
|
-
return this.
|
|
2297
|
+
protoOf(_no_name_provided__qut3iv_2).s2y = function (store, next, action) {
|
|
2298
|
+
return this.r4s(store, next, action);
|
|
3480
2299
|
};
|
|
3481
2300
|
function serverPlayerTurnTimerTickMiddleware(serverConfig, logger) {
|
|
3482
2301
|
var tmp$ret$0;
|
|
@@ -3485,26 +2304,26 @@
|
|
|
3485
2304
|
return tmp$ret$0;
|
|
3486
2305
|
}
|
|
3487
2306
|
function _no_name_provided__qut3iv_3($serverConfig, $logger) {
|
|
3488
|
-
this.
|
|
3489
|
-
this.
|
|
2307
|
+
this.b7y_1 = $serverConfig;
|
|
2308
|
+
this.c7y_1 = $logger;
|
|
3490
2309
|
}
|
|
3491
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
2310
|
+
protoOf(_no_name_provided__qut3iv_3).r2y = function (action) {
|
|
3492
2311
|
return action instanceof TimerTickAction;
|
|
3493
2312
|
};
|
|
3494
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
2313
|
+
protoOf(_no_name_provided__qut3iv_3).r4s = function (store, next, action) {
|
|
3495
2314
|
// Inline function 'com.debertz.logic.server.redux.middlewares.player.serverPlayerTurnTimerTickMiddleware.<anonymous>' call
|
|
3496
2315
|
var tmp0__anonymous__q1qw7t = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
3497
|
-
var timerTag = tmp0__anonymous__q1qw7t.
|
|
2316
|
+
var timerTag = tmp0__anonymous__q1qw7t.f2z_1;
|
|
3498
2317
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
3499
2318
|
var state = store.state;
|
|
3500
|
-
var table = state.
|
|
3501
|
-
var player = getPlayer(table.players, timerTag.
|
|
3502
|
-
var tmp0_subject = player.
|
|
2319
|
+
var table = state.k35();
|
|
2320
|
+
var player = getPlayer(table.players, timerTag.d4v_1);
|
|
2321
|
+
var tmp0_subject = player.c39_1.r2q_1;
|
|
3503
2322
|
var tmp0 = tmp0_subject.s5_1;
|
|
3504
2323
|
var tmp;
|
|
3505
2324
|
switch (tmp0) {
|
|
3506
2325
|
case 0:
|
|
3507
|
-
tmp = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.
|
|
2326
|
+
tmp = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.m2p(), timerTag.f4v_1));
|
|
3508
2327
|
break;
|
|
3509
2328
|
case 4:
|
|
3510
2329
|
tmp = emptyList();
|
|
@@ -3513,16 +2332,16 @@
|
|
|
3513
2332
|
case 2:
|
|
3514
2333
|
case 1:
|
|
3515
2334
|
var tmp_0;
|
|
3516
|
-
if (this.
|
|
3517
|
-
tmp_0 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.
|
|
2335
|
+
if (this.b7y_1.z7w_1 ? table.sceneInfo.c4e() : false) {
|
|
2336
|
+
tmp_0 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.m2p(), timerTag.f4v_1);
|
|
3518
2337
|
} else {
|
|
3519
|
-
tmp_0 = new AskBotAction(player.
|
|
2338
|
+
tmp_0 = new AskBotAction(player.m2p(), 'PlayerTurn after player TIMEOUT');
|
|
3520
2339
|
}
|
|
3521
2340
|
|
|
3522
2341
|
tmp = listOf(tmp_0);
|
|
3523
2342
|
break;
|
|
3524
2343
|
case 5:
|
|
3525
|
-
this.
|
|
2344
|
+
this.c7y_1.w(VOID, 'ServerPlayerTurnTimeoutMiddleware: ' + ("Can't support this state " + player.c39_1.r2q_1 + ', ') + ('action:' + tmp0__anonymous__q1qw7t));
|
|
3526
2345
|
tmp = emptyList();
|
|
3527
2346
|
break;
|
|
3528
2347
|
default:
|
|
@@ -3545,8 +2364,8 @@
|
|
|
3545
2364
|
}
|
|
3546
2365
|
next(tmp0__anonymous__q1qw7t);
|
|
3547
2366
|
};
|
|
3548
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3549
|
-
return this.
|
|
2367
|
+
protoOf(_no_name_provided__qut3iv_3).s2y = function (store, next, action) {
|
|
2368
|
+
return this.r4s(store, next, action);
|
|
3550
2369
|
};
|
|
3551
2370
|
function roomLifecycleMiddleware(asyncProvider, logger) {
|
|
3552
2371
|
var tmp$ret$0;
|
|
@@ -3555,8 +2374,8 @@
|
|
|
3555
2374
|
return tmp$ret$0;
|
|
3556
2375
|
}
|
|
3557
2376
|
function roomLifecycleMiddleware$o$handle$slambda$slambda($actions, $store, resultContinuation) {
|
|
3558
|
-
this.
|
|
3559
|
-
this.
|
|
2377
|
+
this.l7y_1 = $actions;
|
|
2378
|
+
this.m7y_1 = $store;
|
|
3560
2379
|
CoroutineImpl.call(this, resultContinuation);
|
|
3561
2380
|
}
|
|
3562
2381
|
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).c16 = function ($this$launchStore, $completion) {
|
|
@@ -3575,10 +2394,10 @@
|
|
|
3575
2394
|
var tmp = this.vh_1;
|
|
3576
2395
|
if (tmp === 0) {
|
|
3577
2396
|
this.wh_1 = 1;
|
|
3578
|
-
var tmp0_iterator = this.
|
|
2397
|
+
var tmp0_iterator = this.l7y_1.f();
|
|
3579
2398
|
while (tmp0_iterator.g()) {
|
|
3580
2399
|
var element = tmp0_iterator.h();
|
|
3581
|
-
this.
|
|
2400
|
+
this.m7y_1.dispatch(element);
|
|
3582
2401
|
}
|
|
3583
2402
|
return Unit_getInstance();
|
|
3584
2403
|
} else if (tmp === 1) {
|
|
@@ -3591,8 +2410,8 @@
|
|
|
3591
2410
|
while (true);
|
|
3592
2411
|
};
|
|
3593
2412
|
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).d16 = function ($this$launchStore, completion) {
|
|
3594
|
-
var i = new roomLifecycleMiddleware$o$handle$slambda$slambda(this.
|
|
3595
|
-
i.
|
|
2413
|
+
var i = new roomLifecycleMiddleware$o$handle$slambda$slambda(this.l7y_1, this.m7y_1, completion);
|
|
2414
|
+
i.n7y_1 = $this$launchStore;
|
|
3596
2415
|
return i;
|
|
3597
2416
|
};
|
|
3598
2417
|
function roomLifecycleMiddleware$o$handle$slambda$slambda_0($actions, $store, resultContinuation) {
|
|
@@ -3604,10 +2423,10 @@
|
|
|
3604
2423
|
return l;
|
|
3605
2424
|
}
|
|
3606
2425
|
function roomLifecycleMiddleware$o$handle$slambda($store, $tmp0__anonymous__1nv1x1, $logger, $asyncProvider, resultContinuation) {
|
|
3607
|
-
this.
|
|
3608
|
-
this.
|
|
3609
|
-
this.
|
|
3610
|
-
this.
|
|
2426
|
+
this.w7y_1 = $store;
|
|
2427
|
+
this.x7y_1 = $tmp0__anonymous__1nv1x1;
|
|
2428
|
+
this.y7y_1 = $logger;
|
|
2429
|
+
this.z7y_1 = $asyncProvider;
|
|
3611
2430
|
CoroutineImpl.call(this, resultContinuation);
|
|
3612
2431
|
}
|
|
3613
2432
|
protoOf(roomLifecycleMiddleware$o$handle$slambda).c16 = function ($this$launchWorkerWithLock, $completion) {
|
|
@@ -3626,22 +2445,22 @@
|
|
|
3626
2445
|
var tmp = this.vh_1;
|
|
3627
2446
|
if (tmp === 0) {
|
|
3628
2447
|
this.wh_1 = 1;
|
|
3629
|
-
var state = this.
|
|
3630
|
-
var tmp0_subject = this.
|
|
2448
|
+
var state = this.w7y_1.state;
|
|
2449
|
+
var tmp0_subject = this.x7y_1;
|
|
3631
2450
|
var tmp_0;
|
|
3632
2451
|
if (tmp0_subject instanceof RoomWasCreatedAction) {
|
|
3633
|
-
var tmp1_id = this.
|
|
2452
|
+
var tmp1_id = this.x7y_1.g7x_1;
|
|
3634
2453
|
var tmp2_version = GameEngineConfig_getInstance().version;
|
|
3635
|
-
var tmp3_gameCreatorPlayerId = this.
|
|
3636
|
-
var tmp4_config = this.
|
|
3637
|
-
var tmp5_users = this.
|
|
2454
|
+
var tmp3_gameCreatorPlayerId = this.x7y_1.h7x_1;
|
|
2455
|
+
var tmp4_config = this.x7y_1.i7x_1;
|
|
2456
|
+
var tmp5_users = this.x7y_1.j7x_1;
|
|
3638
2457
|
tmp_0 = listOf(new StartGameMechanicAction(tmp4_config, tmp1_id, tmp2_version, tmp3_gameCreatorPlayerId, tmp5_users));
|
|
3639
2458
|
} else {
|
|
3640
2459
|
if (tmp0_subject instanceof RoomWasDeletedAction) {
|
|
3641
|
-
var tmp0_let = state.
|
|
2460
|
+
var tmp0_let = state.j34_1;
|
|
3642
2461
|
var tmp_1;
|
|
3643
2462
|
if (tmp0_let == null) {
|
|
3644
|
-
this.
|
|
2463
|
+
this.y7y_1.w(VOID, "Termination reason can't be null");
|
|
3645
2464
|
tmp_1 = new GameErrorReason('room deleted error');
|
|
3646
2465
|
} else {
|
|
3647
2466
|
tmp_1 = tmp0_let;
|
|
@@ -3653,7 +2472,7 @@
|
|
|
3653
2472
|
}
|
|
3654
2473
|
}
|
|
3655
2474
|
var actions = tmp_0;
|
|
3656
|
-
this.
|
|
2475
|
+
this.z7y_1.s2w(VOID, roomLifecycleMiddleware$o$handle$slambda$slambda_0(actions, this.w7y_1, null));
|
|
3657
2476
|
return Unit_getInstance();
|
|
3658
2477
|
} else if (tmp === 1) {
|
|
3659
2478
|
throw this.yh_1;
|
|
@@ -3665,8 +2484,8 @@
|
|
|
3665
2484
|
while (true);
|
|
3666
2485
|
};
|
|
3667
2486
|
protoOf(roomLifecycleMiddleware$o$handle$slambda).d16 = function ($this$launchWorkerWithLock, completion) {
|
|
3668
|
-
var i = new roomLifecycleMiddleware$o$handle$slambda(this.
|
|
3669
|
-
i.
|
|
2487
|
+
var i = new roomLifecycleMiddleware$o$handle$slambda(this.w7y_1, this.x7y_1, this.y7y_1, this.z7y_1, completion);
|
|
2488
|
+
i.a7z_1 = $this$launchWorkerWithLock;
|
|
3670
2489
|
return i;
|
|
3671
2490
|
};
|
|
3672
2491
|
function roomLifecycleMiddleware$o$handle$slambda_0($store, $tmp0__anonymous__1nv1x1, $logger, $asyncProvider, resultContinuation) {
|
|
@@ -3678,20 +2497,20 @@
|
|
|
3678
2497
|
return l;
|
|
3679
2498
|
}
|
|
3680
2499
|
function _no_name_provided__qut3iv_4($asyncProvider, $logger) {
|
|
3681
|
-
this.
|
|
3682
|
-
this.
|
|
2500
|
+
this.b7z_1 = $asyncProvider;
|
|
2501
|
+
this.c7z_1 = $logger;
|
|
3683
2502
|
}
|
|
3684
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
2503
|
+
protoOf(_no_name_provided__qut3iv_4).r2y = function (action) {
|
|
3685
2504
|
return action instanceof RoomAction;
|
|
3686
2505
|
};
|
|
3687
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
2506
|
+
protoOf(_no_name_provided__qut3iv_4).r4s = function (store, next, action) {
|
|
3688
2507
|
// Inline function 'com.debertz.logic.server.redux.middlewares.rooms.roomLifecycleMiddleware.<anonymous>' call
|
|
3689
2508
|
var tmp0__anonymous__q1qw7t = action instanceof RoomAction ? action : THROW_CCE();
|
|
3690
2509
|
next(tmp0__anonymous__q1qw7t);
|
|
3691
|
-
this.
|
|
2510
|
+
this.b7z_1.w2w(VOID, roomLifecycleMiddleware$o$handle$slambda_0(store, tmp0__anonymous__q1qw7t, this.c7z_1, this.b7z_1, null));
|
|
3692
2511
|
};
|
|
3693
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
3694
|
-
return this.
|
|
2512
|
+
protoOf(_no_name_provided__qut3iv_4).s2y = function (store, next, action) {
|
|
2513
|
+
return this.r4s(store, next, action);
|
|
3695
2514
|
};
|
|
3696
2515
|
function checkBotsMiddleware(logger) {
|
|
3697
2516
|
var tmp$ret$0;
|
|
@@ -3700,19 +2519,19 @@
|
|
|
3700
2519
|
return tmp$ret$0;
|
|
3701
2520
|
}
|
|
3702
2521
|
function _no_name_provided__qut3iv_5($logger) {
|
|
3703
|
-
this.
|
|
2522
|
+
this.d7z_1 = $logger;
|
|
3704
2523
|
}
|
|
3705
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
2524
|
+
protoOf(_no_name_provided__qut3iv_5).r2y = function (action) {
|
|
3706
2525
|
return action instanceof SceneMechanicAction;
|
|
3707
2526
|
};
|
|
3708
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
2527
|
+
protoOf(_no_name_provided__qut3iv_5).r4s = function (store, next, action) {
|
|
3709
2528
|
// Inline function 'com.debertz.logic.server.redux.middlewares.validation.checkBotsMiddleware.<anonymous>' call
|
|
3710
2529
|
var tmp0__anonymous__q1qw7t = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
3711
2530
|
var state = store.state;
|
|
3712
2531
|
var tmp;
|
|
3713
|
-
if (state.
|
|
3714
|
-
|
|
3715
|
-
tmp = !(tmp0__anonymous__q1qw7t.
|
|
2532
|
+
if (state.l35()) {
|
|
2533
|
+
Companion_getInstance_2();
|
|
2534
|
+
tmp = !(tmp0__anonymous__q1qw7t.x3x_1 === 'WAITING');
|
|
3716
2535
|
} else {
|
|
3717
2536
|
tmp = false;
|
|
3718
2537
|
}
|
|
@@ -3720,7 +2539,7 @@
|
|
|
3720
2539
|
var tmp$ret$0;
|
|
3721
2540
|
$l$block_0: {
|
|
3722
2541
|
// Inline function 'kotlin.collections.all' call
|
|
3723
|
-
var tmp0_all = state.
|
|
2542
|
+
var tmp0_all = state.k35().players;
|
|
3724
2543
|
var tmp_0;
|
|
3725
2544
|
if (isInterface(tmp0_all, Collection)) {
|
|
3726
2545
|
tmp_0 = tmp0_all.l();
|
|
@@ -3736,7 +2555,7 @@
|
|
|
3736
2555
|
var element = tmp0_iterator.h();
|
|
3737
2556
|
var tmp$ret$1;
|
|
3738
2557
|
// Inline function 'com.debertz.logic.server.redux.middlewares.validation.checkBotsMiddleware.<anonymous>.<anonymous>' call
|
|
3739
|
-
tmp$ret$1 = element.
|
|
2558
|
+
tmp$ret$1 = element.c39_1.r2q_1.isNotAlive;
|
|
3740
2559
|
if (!tmp$ret$1) {
|
|
3741
2560
|
tmp$ret$0 = false;
|
|
3742
2561
|
break $l$block_0;
|
|
@@ -3748,7 +2567,7 @@
|
|
|
3748
2567
|
var tmp_1 = get_TAG();
|
|
3749
2568
|
var tmp$ret$4;
|
|
3750
2569
|
// Inline function 'kotlin.collections.map' call
|
|
3751
|
-
var tmp2_map = state.
|
|
2570
|
+
var tmp2_map = state.k35().players;
|
|
3752
2571
|
var tmp$ret$3;
|
|
3753
2572
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3754
2573
|
var tmp1_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map, 10));
|
|
@@ -3757,18 +2576,18 @@
|
|
|
3757
2576
|
var item = tmp0_iterator_0.h();
|
|
3758
2577
|
var tmp$ret$2;
|
|
3759
2578
|
// Inline function 'com.debertz.logic.server.redux.middlewares.validation.checkBotsMiddleware.<anonymous>.<anonymous>' call
|
|
3760
|
-
tmp$ret$2 = to(item.
|
|
2579
|
+
tmp$ret$2 = to(item.m2p(), item.c39_1.r2q_1);
|
|
3761
2580
|
tmp1_mapTo.a(tmp$ret$2);
|
|
3762
2581
|
}
|
|
3763
2582
|
tmp$ret$3 = tmp1_mapTo;
|
|
3764
2583
|
tmp$ret$4 = tmp$ret$3;
|
|
3765
|
-
this.
|
|
2584
|
+
this.d7z_1.w(tmp_1, 'CheckBotsMiddleware: Only bots are playing: ' + tmp$ret$4);
|
|
3766
2585
|
}
|
|
3767
2586
|
}
|
|
3768
2587
|
next(tmp0__anonymous__q1qw7t);
|
|
3769
2588
|
};
|
|
3770
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
3771
|
-
return this.
|
|
2589
|
+
protoOf(_no_name_provided__qut3iv_5).s2y = function (store, next, action) {
|
|
2590
|
+
return this.r4s(store, next, action);
|
|
3772
2591
|
};
|
|
3773
2592
|
function checkGameIsFinishingWaitForRoomDeleteMiddleware(logger) {
|
|
3774
2593
|
return middleware(checkGameIsFinishingWaitForRoomDeleteMiddleware$lambda(logger));
|
|
@@ -3777,7 +2596,7 @@
|
|
|
3777
2596
|
return function (store, next, action) {
|
|
3778
2597
|
var state = store.state;
|
|
3779
2598
|
var tmp;
|
|
3780
|
-
if (state.
|
|
2599
|
+
if (state.l35()) {
|
|
3781
2600
|
var tmp_0;
|
|
3782
2601
|
var tmp_1;
|
|
3783
2602
|
if (get_isFinished(state)) {
|
|
@@ -3809,71 +2628,71 @@
|
|
|
3809
2628
|
}
|
|
3810
2629
|
function _no_name_provided__qut3iv_6() {
|
|
3811
2630
|
}
|
|
3812
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
2631
|
+
protoOf(_no_name_provided__qut3iv_6).r2y = function (action) {
|
|
3813
2632
|
return action instanceof UpdateServerConfigAction;
|
|
3814
2633
|
};
|
|
3815
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
2634
|
+
protoOf(_no_name_provided__qut3iv_6).y4x = function (state, action) {
|
|
3816
2635
|
var tmp$ret$0;
|
|
3817
2636
|
// Inline function 'com.debertz.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
3818
2637
|
var tmp0__anonymous__q1qw7t = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
3819
|
-
tmp$ret$0 = state.
|
|
2638
|
+
tmp$ret$0 = state.r4o(VOID, get_serverState(state).e7z(tmp0__anonymous__q1qw7t.f7x_1));
|
|
3820
2639
|
return tmp$ret$0;
|
|
3821
2640
|
};
|
|
3822
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
3823
|
-
return this.
|
|
2641
|
+
protoOf(_no_name_provided__qut3iv_6).f2x = function (state, action) {
|
|
2642
|
+
return this.y4x(state instanceof AppState ? state : THROW_CCE(), action);
|
|
3824
2643
|
};
|
|
3825
2644
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer) {
|
|
3826
2645
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer);
|
|
3827
|
-
this.
|
|
2646
|
+
this.g7z_1 = logger;
|
|
3828
2647
|
}
|
|
3829
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3830
|
-
var serverState = get_serverStateOrNull(state.
|
|
2648
|
+
protoOf(ServerMechanicLifecycleReducer).m4z = function (state, action) {
|
|
2649
|
+
var serverState = get_serverStateOrNull(state.h34_1);
|
|
3831
2650
|
var tmp6_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3832
|
-
var tmp0_$this = this.
|
|
3833
|
-
var tmp1_id = action.
|
|
3834
|
-
var tmp2_version = action.
|
|
3835
|
-
var tmp3_config = action.
|
|
3836
|
-
var tmp4_users = action.
|
|
3837
|
-
var tmp5_gameCreatorPlayerId = action.
|
|
3838
|
-
var tmp7_tableOrNull = tmp0_$this.
|
|
2651
|
+
var tmp0_$this = this.p4z_1;
|
|
2652
|
+
var tmp1_id = action.n3x_1;
|
|
2653
|
+
var tmp2_version = action.o3x_1;
|
|
2654
|
+
var tmp3_config = action.m3x_1;
|
|
2655
|
+
var tmp4_users = action.q3x_1;
|
|
2656
|
+
var tmp5_gameCreatorPlayerId = action.p3x_1;
|
|
2657
|
+
var tmp7_tableOrNull = tmp0_$this.e50(tmp1_id, tmp3_config, tmp2_version, tmp4_users, tmp5_gameCreatorPlayerId);
|
|
3839
2658
|
var tmp;
|
|
3840
2659
|
if (serverState == null) {
|
|
3841
|
-
this.
|
|
3842
|
-
tmp =
|
|
2660
|
+
this.g7z_1.w(VOID, 'ServerPayload is not onStart');
|
|
2661
|
+
tmp = Companion_getInstance_5().s7w();
|
|
3843
2662
|
} else {
|
|
3844
2663
|
tmp = serverState;
|
|
3845
2664
|
}
|
|
3846
2665
|
var tmp8_payload = tmp;
|
|
3847
|
-
return state.
|
|
2666
|
+
return state.r4o(tmp7_tableOrNull, tmp8_payload, tmp6_gameLifecycleState);
|
|
3848
2667
|
};
|
|
3849
2668
|
function Companion() {
|
|
3850
2669
|
Companion_instance = this;
|
|
3851
2670
|
}
|
|
3852
|
-
protoOf(Companion).
|
|
2671
|
+
protoOf(Companion).h7z = function (config) {
|
|
3853
2672
|
return new ServerState(config);
|
|
3854
2673
|
};
|
|
3855
|
-
protoOf(Companion).
|
|
2674
|
+
protoOf(Companion).s7w = function (config, $super) {
|
|
3856
2675
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
3857
|
-
return $super === VOID ? this.
|
|
2676
|
+
return $super === VOID ? this.h7z(config) : $super.h7z.call(this, config);
|
|
3858
2677
|
};
|
|
3859
2678
|
var Companion_instance;
|
|
3860
|
-
function
|
|
2679
|
+
function Companion_getInstance_5() {
|
|
3861
2680
|
if (Companion_instance == null)
|
|
3862
2681
|
new Companion();
|
|
3863
2682
|
return Companion_instance;
|
|
3864
2683
|
}
|
|
3865
2684
|
function ServerState(config) {
|
|
3866
|
-
|
|
3867
|
-
this.
|
|
2685
|
+
Companion_getInstance_5();
|
|
2686
|
+
this.t7w_1 = config;
|
|
3868
2687
|
}
|
|
3869
|
-
protoOf(ServerState).
|
|
2688
|
+
protoOf(ServerState).e7z = function (config) {
|
|
3870
2689
|
return new ServerState(config);
|
|
3871
2690
|
};
|
|
3872
2691
|
protoOf(ServerState).toString = function () {
|
|
3873
|
-
return 'ServerState(config=' + this.
|
|
2692
|
+
return 'ServerState(config=' + this.t7w_1 + ')';
|
|
3874
2693
|
};
|
|
3875
2694
|
protoOf(ServerState).hashCode = function () {
|
|
3876
|
-
return this.
|
|
2695
|
+
return this.t7w_1.hashCode();
|
|
3877
2696
|
};
|
|
3878
2697
|
protoOf(ServerState).equals = function (other) {
|
|
3879
2698
|
if (this === other)
|
|
@@ -3881,14 +2700,14 @@
|
|
|
3881
2700
|
if (!(other instanceof ServerState))
|
|
3882
2701
|
return false;
|
|
3883
2702
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
3884
|
-
if (!this.
|
|
2703
|
+
if (!this.t7w_1.equals(tmp0_other_with_cast.t7w_1))
|
|
3885
2704
|
return false;
|
|
3886
2705
|
return true;
|
|
3887
2706
|
};
|
|
3888
2707
|
function get_serverState(_this__u8e3s4) {
|
|
3889
2708
|
var tmp$ret$2;
|
|
3890
2709
|
// Inline function 'kotlin.requireNotNull' call
|
|
3891
|
-
var tmp0_requireNotNull = _this__u8e3s4.
|
|
2710
|
+
var tmp0_requireNotNull = _this__u8e3s4.h34_1;
|
|
3892
2711
|
// Inline function 'kotlin.contracts.contract' call
|
|
3893
2712
|
var tmp$ret$1;
|
|
3894
2713
|
$l$block: {
|
|
@@ -4292,10 +3111,10 @@
|
|
|
4292
3111
|
}
|
|
4293
3112
|
protoOf(GameHelperImpl).filterLivePlayers = function (store, playerIds) {
|
|
4294
3113
|
var state = store.state;
|
|
4295
|
-
if (!state.
|
|
3114
|
+
if (!state.l35()) {
|
|
4296
3115
|
return playerIds;
|
|
4297
3116
|
}
|
|
4298
|
-
var players = state.
|
|
3117
|
+
var players = state.k35().players;
|
|
4299
3118
|
var tmp$ret$9;
|
|
4300
3119
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4301
3120
|
var tmp$ret$8;
|
|
@@ -4329,7 +3148,7 @@
|
|
|
4329
3148
|
var element = tmp0_iterator.h();
|
|
4330
3149
|
var tmp$ret$3;
|
|
4331
3150
|
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
4332
|
-
tmp$ret$3 = element.
|
|
3151
|
+
tmp$ret$3 = element.c39_1.r2q_1.isLive;
|
|
4333
3152
|
if (tmp$ret$3) {
|
|
4334
3153
|
tmp1_filterTo.a(element);
|
|
4335
3154
|
}
|
|
@@ -4345,7 +3164,7 @@
|
|
|
4345
3164
|
var item_0 = tmp0_iterator_0.h();
|
|
4346
3165
|
var tmp$ret$6;
|
|
4347
3166
|
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
4348
|
-
tmp$ret$6 = item_0.
|
|
3167
|
+
tmp$ret$6 = item_0.m2p();
|
|
4349
3168
|
tmp3_mapTo.a(tmp$ret$6);
|
|
4350
3169
|
}
|
|
4351
3170
|
tmp$ret$7 = tmp3_mapTo;
|
|
@@ -4356,10 +3175,10 @@
|
|
|
4356
3175
|
};
|
|
4357
3176
|
protoOf(GameHelperImpl).filterBotPlayers = function (store, playerIds) {
|
|
4358
3177
|
var state = store.state;
|
|
4359
|
-
if (!state.
|
|
3178
|
+
if (!state.l35()) {
|
|
4360
3179
|
return playerIds;
|
|
4361
3180
|
}
|
|
4362
|
-
var players = state.
|
|
3181
|
+
var players = state.k35().players;
|
|
4363
3182
|
var tmp$ret$9;
|
|
4364
3183
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4365
3184
|
var tmp$ret$8;
|
|
@@ -4393,7 +3212,7 @@
|
|
|
4393
3212
|
var element = tmp0_iterator.h();
|
|
4394
3213
|
var tmp$ret$3;
|
|
4395
3214
|
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
4396
|
-
tmp$ret$3 = element.
|
|
3215
|
+
tmp$ret$3 = element.b39_1.isBot;
|
|
4397
3216
|
if (tmp$ret$3) {
|
|
4398
3217
|
tmp1_filterTo.a(element);
|
|
4399
3218
|
}
|
|
@@ -4409,7 +3228,7 @@
|
|
|
4409
3228
|
var item_0 = tmp0_iterator_0.h();
|
|
4410
3229
|
var tmp$ret$6;
|
|
4411
3230
|
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
4412
|
-
tmp$ret$6 = item_0.
|
|
3231
|
+
tmp$ret$6 = item_0.m2p();
|
|
4413
3232
|
tmp3_mapTo.a(tmp$ret$6);
|
|
4414
3233
|
}
|
|
4415
3234
|
tmp$ret$7 = tmp3_mapTo;
|
|
@@ -4420,10 +3239,10 @@
|
|
|
4420
3239
|
};
|
|
4421
3240
|
protoOf(GameHelperImpl).filterRealPlayers = function (store, playerIds) {
|
|
4422
3241
|
var state = store.state;
|
|
4423
|
-
if (!state.
|
|
3242
|
+
if (!state.l35()) {
|
|
4424
3243
|
return playerIds;
|
|
4425
3244
|
}
|
|
4426
|
-
var players = state.
|
|
3245
|
+
var players = state.k35().players;
|
|
4427
3246
|
var tmp$ret$9;
|
|
4428
3247
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4429
3248
|
var tmp$ret$8;
|
|
@@ -4457,7 +3276,7 @@
|
|
|
4457
3276
|
var element = tmp0_iterator.h();
|
|
4458
3277
|
var tmp$ret$3;
|
|
4459
3278
|
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
4460
|
-
tmp$ret$3 = !element.
|
|
3279
|
+
tmp$ret$3 = !element.b39_1.isBot;
|
|
4461
3280
|
if (tmp$ret$3) {
|
|
4462
3281
|
tmp1_filterTo.a(element);
|
|
4463
3282
|
}
|
|
@@ -4473,7 +3292,7 @@
|
|
|
4473
3292
|
var item_0 = tmp0_iterator_0.h();
|
|
4474
3293
|
var tmp$ret$6;
|
|
4475
3294
|
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
4476
|
-
tmp$ret$6 = item_0.
|
|
3295
|
+
tmp$ret$6 = item_0.m2p();
|
|
4477
3296
|
tmp3_mapTo.a(tmp$ret$6);
|
|
4478
3297
|
}
|
|
4479
3298
|
tmp$ret$7 = tmp3_mapTo;
|
|
@@ -4484,21 +3303,21 @@
|
|
|
4484
3303
|
};
|
|
4485
3304
|
protoOf(GameHelperImpl).getUserSocketId = function (store, playerId) {
|
|
4486
3305
|
var state = store.state;
|
|
4487
|
-
if (!state.
|
|
3306
|
+
if (!state.l35()) {
|
|
4488
3307
|
return null;
|
|
4489
3308
|
}
|
|
4490
|
-
return get_serverUserPayload(getPlayer(state.
|
|
3309
|
+
return get_serverUserPayload(getPlayer(state.k35().players, playerId).b39_1).i7z_1;
|
|
4491
3310
|
};
|
|
4492
3311
|
protoOf(GameHelperImpl).getUserSocketIds = function (store) {
|
|
4493
3312
|
var state = store.state;
|
|
4494
|
-
if (!state.
|
|
3313
|
+
if (!state.l35()) {
|
|
4495
3314
|
return null;
|
|
4496
3315
|
}
|
|
4497
3316
|
var tmp$ret$3;
|
|
4498
3317
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4499
3318
|
var tmp$ret$2;
|
|
4500
3319
|
// Inline function 'kotlin.collections.map' call
|
|
4501
|
-
var tmp1_map = state.
|
|
3320
|
+
var tmp1_map = state.k35().players;
|
|
4502
3321
|
var tmp$ret$1;
|
|
4503
3322
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4504
3323
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -4507,7 +3326,7 @@
|
|
|
4507
3326
|
var item = tmp0_iterator.h();
|
|
4508
3327
|
var tmp$ret$0;
|
|
4509
3328
|
// Inline function 'GameHelperImpl.getUserSocketIds.<anonymous>' call
|
|
4510
|
-
tmp$ret$0 = get_serverUserPayload(item.
|
|
3329
|
+
tmp$ret$0 = get_serverUserPayload(item.b39_1).i7z_1;
|
|
4511
3330
|
tmp0_mapTo.a(tmp$ret$0);
|
|
4512
3331
|
}
|
|
4513
3332
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -4671,16 +3490,16 @@
|
|
|
4671
3490
|
var tmp;
|
|
4672
3491
|
switch (tmp0) {
|
|
4673
3492
|
case 0:
|
|
4674
|
-
tmp =
|
|
3493
|
+
tmp = Companion_getInstance_3().belot();
|
|
4675
3494
|
break;
|
|
4676
3495
|
case 1:
|
|
4677
|
-
tmp =
|
|
3496
|
+
tmp = Companion_getInstance_3().klabor();
|
|
4678
3497
|
break;
|
|
4679
3498
|
case 2:
|
|
4680
|
-
tmp =
|
|
3499
|
+
tmp = Companion_getInstance_3().debertzCommon();
|
|
4681
3500
|
break;
|
|
4682
3501
|
case 3:
|
|
4683
|
-
tmp =
|
|
3502
|
+
tmp = Companion_getInstance_3().kharkiv();
|
|
4684
3503
|
break;
|
|
4685
3504
|
case 4:
|
|
4686
3505
|
throw IllegalStateException_init_$Create$("You can't use default custom rule, you need to provide own one");
|
|
@@ -4694,13 +3513,13 @@
|
|
|
4694
3513
|
var tmp0_subject = name;
|
|
4695
3514
|
var tmp;
|
|
4696
3515
|
if (tmp0_subject === RulesSetType_belot_getInstance().r5_1) {
|
|
4697
|
-
tmp =
|
|
3516
|
+
tmp = Companion_getInstance_3().belot();
|
|
4698
3517
|
} else if (tmp0_subject === RulesSetType_klabor_getInstance().r5_1) {
|
|
4699
|
-
tmp =
|
|
3518
|
+
tmp = Companion_getInstance_3().klabor();
|
|
4700
3519
|
} else if (tmp0_subject === RulesSetType_debertzCommon_getInstance().r5_1) {
|
|
4701
|
-
tmp =
|
|
3520
|
+
tmp = Companion_getInstance_3().debertzCommon();
|
|
4702
3521
|
} else if (tmp0_subject === RulesSetType_debertzKharkiv_getInstance().r5_1) {
|
|
4703
|
-
tmp =
|
|
3522
|
+
tmp = Companion_getInstance_3().kharkiv();
|
|
4704
3523
|
} else if (tmp0_subject === RulesSetType_custom_getInstance().r5_1) {
|
|
4705
3524
|
throw IllegalStateException_init_$Create$("You can't use default custom rule, you need to provide own one");
|
|
4706
3525
|
} else {
|
|
@@ -4762,21 +3581,21 @@
|
|
|
4762
3581
|
function getRandomAvatarData_0($this) {
|
|
4763
3582
|
var avatarSetNumber = Default_getInstance().n(values_2().length);
|
|
4764
3583
|
var avatarSet = values_2()[avatarSetNumber];
|
|
4765
|
-
return new AvatarData(Default_getInstance().n(avatarSet.
|
|
3584
|
+
return new AvatarData(Default_getInstance().n(avatarSet.m7z()), avatarSet);
|
|
4766
3585
|
}
|
|
4767
3586
|
function getAvatarUrlByIndex($this, data) {
|
|
4768
3587
|
return mapToPattern($this, data);
|
|
4769
3588
|
}
|
|
4770
3589
|
function getNicknameByIndex($this, data) {
|
|
4771
|
-
return data.
|
|
3590
|
+
return data.o7z_1.p7z(data.n7z_1);
|
|
4772
3591
|
}
|
|
4773
3592
|
function mapToPattern($this, data) {
|
|
4774
|
-
|
|
4775
|
-
return 'debertz://raspberry.games' + '/' + data.
|
|
3593
|
+
Companion_getInstance_6();
|
|
3594
|
+
return 'debertz://raspberry.games' + '/' + data.o7z_1.s5_1 + '/' + data.n7z_1;
|
|
4776
3595
|
}
|
|
4777
3596
|
function Companion_0() {
|
|
4778
3597
|
Companion_instance_0 = this;
|
|
4779
|
-
this.
|
|
3598
|
+
this.q7z_1 = 'debertz://raspberry.games';
|
|
4780
3599
|
var tmp = this;
|
|
4781
3600
|
var tmp$ret$2;
|
|
4782
3601
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4787,7 +3606,7 @@
|
|
|
4787
3606
|
tmp$ret$0 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
4788
3607
|
tmp$ret$1 = tmp$ret$0;
|
|
4789
3608
|
tmp$ret$2 = tmp$ret$1;
|
|
4790
|
-
tmp.
|
|
3609
|
+
tmp.r7z_1 = tmp$ret$2;
|
|
4791
3610
|
var tmp_0 = this;
|
|
4792
3611
|
var tmp$ret$5;
|
|
4793
3612
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4798,7 +3617,7 @@
|
|
|
4798
3617
|
tmp$ret$3 = ['\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'];
|
|
4799
3618
|
tmp$ret$4 = tmp$ret$3;
|
|
4800
3619
|
tmp$ret$5 = tmp$ret$4;
|
|
4801
|
-
tmp_0.
|
|
3620
|
+
tmp_0.s7z_1 = tmp$ret$5;
|
|
4802
3621
|
var tmp_1 = this;
|
|
4803
3622
|
var tmp$ret$8;
|
|
4804
3623
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4809,7 +3628,7 @@
|
|
|
4809
3628
|
tmp$ret$6 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
4810
3629
|
tmp$ret$7 = tmp$ret$6;
|
|
4811
3630
|
tmp$ret$8 = tmp$ret$7;
|
|
4812
|
-
tmp_1.
|
|
3631
|
+
tmp_1.t7z_1 = tmp$ret$8;
|
|
4813
3632
|
var tmp_2 = this;
|
|
4814
3633
|
var tmp$ret$11;
|
|
4815
3634
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4820,10 +3639,10 @@
|
|
|
4820
3639
|
tmp$ret$9 = ['\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'];
|
|
4821
3640
|
tmp$ret$10 = tmp$ret$9;
|
|
4822
3641
|
tmp$ret$11 = tmp$ret$10;
|
|
4823
|
-
tmp_2.
|
|
3642
|
+
tmp_2.u7z_1 = tmp$ret$11;
|
|
4824
3643
|
}
|
|
4825
3644
|
var Companion_instance_0;
|
|
4826
|
-
function
|
|
3645
|
+
function Companion_getInstance_6() {
|
|
4827
3646
|
if (Companion_instance_0 == null)
|
|
4828
3647
|
new Companion_0();
|
|
4829
3648
|
return Companion_instance_0;
|
|
@@ -4831,16 +3650,16 @@
|
|
|
4831
3650
|
function AvatarSet(name, ordinal) {
|
|
4832
3651
|
Enum.call(this, name, ordinal);
|
|
4833
3652
|
}
|
|
4834
|
-
protoOf(AvatarSet).
|
|
3653
|
+
protoOf(AvatarSet).m7z = function () {
|
|
4835
3654
|
var tmp0_subject = this;
|
|
4836
3655
|
var tmp0 = tmp0_subject.s5_1;
|
|
4837
3656
|
var tmp;
|
|
4838
3657
|
switch (tmp0) {
|
|
4839
3658
|
case 0:
|
|
4840
|
-
tmp =
|
|
3659
|
+
tmp = Companion_getInstance_6().s7z_1.length;
|
|
4841
3660
|
break;
|
|
4842
3661
|
case 1:
|
|
4843
|
-
tmp =
|
|
3662
|
+
tmp = Companion_getInstance_6().u7z_1.length;
|
|
4844
3663
|
break;
|
|
4845
3664
|
default:
|
|
4846
3665
|
noWhenBranchMatchedException();
|
|
@@ -4848,16 +3667,16 @@
|
|
|
4848
3667
|
}
|
|
4849
3668
|
return tmp;
|
|
4850
3669
|
};
|
|
4851
|
-
protoOf(AvatarSet).
|
|
3670
|
+
protoOf(AvatarSet).p7z = function (index) {
|
|
4852
3671
|
var tmp0_subject = this;
|
|
4853
3672
|
var tmp0 = tmp0_subject.s5_1;
|
|
4854
3673
|
var tmp;
|
|
4855
3674
|
switch (tmp0) {
|
|
4856
3675
|
case 0:
|
|
4857
|
-
tmp =
|
|
3676
|
+
tmp = Companion_getInstance_6().s7z_1[index];
|
|
4858
3677
|
break;
|
|
4859
3678
|
case 1:
|
|
4860
|
-
tmp =
|
|
3679
|
+
tmp = Companion_getInstance_6().u7z_1[index];
|
|
4861
3680
|
break;
|
|
4862
3681
|
default:
|
|
4863
3682
|
noWhenBranchMatchedException();
|
|
@@ -4866,8 +3685,8 @@
|
|
|
4866
3685
|
return tmp;
|
|
4867
3686
|
};
|
|
4868
3687
|
function AvatarData(index, avatarSet) {
|
|
4869
|
-
this.
|
|
4870
|
-
this.
|
|
3688
|
+
this.n7z_1 = index;
|
|
3689
|
+
this.o7z_1 = avatarSet;
|
|
4871
3690
|
}
|
|
4872
3691
|
function AvatarSet_ORIGIN_getInstance() {
|
|
4873
3692
|
AvatarSet_initEntries();
|
|
@@ -4878,9 +3697,9 @@
|
|
|
4878
3697
|
return AvatarSet_NOSTALGIA_instance;
|
|
4879
3698
|
}
|
|
4880
3699
|
function GameResourcesImpl() {
|
|
4881
|
-
|
|
3700
|
+
Companion_getInstance_6();
|
|
4882
3701
|
}
|
|
4883
|
-
protoOf(GameResourcesImpl).
|
|
3702
|
+
protoOf(GameResourcesImpl).j7z = function (playerId, existingNicknames) {
|
|
4884
3703
|
var data = getRandomAvatarData(this, existingNicknames);
|
|
4885
3704
|
return new GameUserInfo(playerId, getNicknameByIndex(this, data), getAvatarUrlByIndex(this, data), true);
|
|
4886
3705
|
};
|
|
@@ -4928,20 +3747,20 @@
|
|
|
4928
3747
|
return new GameServerEngineControllerImpl(loggerCallback);
|
|
4929
3748
|
}
|
|
4930
3749
|
function createDI($this, logger, serverConfig, logicConfig, botConfig, externalReducers, externalMiddlewares) {
|
|
4931
|
-
var tmp =
|
|
4932
|
-
return tmp.
|
|
3750
|
+
var tmp = Companion_getInstance_4();
|
|
3751
|
+
return tmp.m2i(VOID, GameServerEngineControllerImpl$createDI$lambda(serverConfig, logicConfig, botConfig, externalReducers, externalMiddlewares, logger));
|
|
4933
3752
|
}
|
|
4934
3753
|
function _no_name_provided__qut3iv_7($item) {
|
|
4935
|
-
this.
|
|
3754
|
+
this.z7z_1 = $item;
|
|
4936
3755
|
}
|
|
4937
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
3756
|
+
protoOf(_no_name_provided__qut3iv_7).r2y = function (action) {
|
|
4938
3757
|
return isInterface(action, Action);
|
|
4939
3758
|
};
|
|
4940
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4941
|
-
return this.
|
|
3759
|
+
protoOf(_no_name_provided__qut3iv_7).y4x = function (state, action) {
|
|
3760
|
+
return this.z7z_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
4942
3761
|
};
|
|
4943
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4944
|
-
return this.
|
|
3762
|
+
protoOf(_no_name_provided__qut3iv_7).f2x = function (state, action) {
|
|
3763
|
+
return this.y4x(state instanceof AppState ? state : THROW_CCE(), action);
|
|
4945
3764
|
};
|
|
4946
3765
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda($gameServer) {
|
|
4947
3766
|
return function () {
|
|
@@ -4957,12 +3776,12 @@
|
|
|
4957
3776
|
var tmp = Default_getInstance();
|
|
4958
3777
|
var tmp$ret$1;
|
|
4959
3778
|
// Inline function 'org.kodein.di.instance' call
|
|
4960
|
-
var tmp_0 = $this$singleton.
|
|
3779
|
+
var tmp_0 = $this$singleton.p2j();
|
|
4961
3780
|
var tmp$ret$0;
|
|
4962
3781
|
// Inline function 'org.kodein.type.generic' call
|
|
4963
3782
|
var tmp_1 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
4964
3783
|
tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
|
|
4965
|
-
tmp$ret$1 = tmp_0.
|
|
3784
|
+
tmp$ret$1 = tmp_0.q2j(tmp$ret$0, null);
|
|
4966
3785
|
return new CardsGeneratorProviderImpl(tmp, tmp$ret$1);
|
|
4967
3786
|
}
|
|
4968
3787
|
function GameServerEngineControllerImpl$createDI$lambda($serverConfig, $logicConfig, $botConfig, $externalReducers, $externalMiddlewares, $logger) {
|
|
@@ -4973,50 +3792,50 @@
|
|
|
4973
3792
|
// Inline function 'org.kodein.type.generic' call
|
|
4974
3793
|
var tmp = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
4975
3794
|
tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
4976
|
-
tmp$ret$1 = $this$invoke.
|
|
3795
|
+
tmp$ret$1 = $this$invoke.g2i(tmp$ret$0, null, null);
|
|
4977
3796
|
var tmp_0 = tmp$ret$1;
|
|
4978
3797
|
var tmp$ret$3;
|
|
4979
3798
|
// Inline function 'org.kodein.di.singleton' call
|
|
4980
3799
|
var tmp0_singleton = GameServerEngineControllerImpl$createDI$lambda$lambda($logger);
|
|
4981
|
-
var tmp_1 = $this$invoke.
|
|
4982
|
-
var tmp_2 = $this$invoke.
|
|
4983
|
-
var tmp_3 = $this$invoke.
|
|
3800
|
+
var tmp_1 = $this$invoke.w2j();
|
|
3801
|
+
var tmp_2 = $this$invoke.x2j();
|
|
3802
|
+
var tmp_3 = $this$invoke.v2l();
|
|
4984
3803
|
var tmp$ret$2;
|
|
4985
3804
|
// Inline function 'org.kodein.type.generic' call
|
|
4986
3805
|
var tmp_4 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
4987
3806
|
tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4988
3807
|
tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, tmp0_singleton);
|
|
4989
|
-
tmp_0.
|
|
3808
|
+
tmp_0.a2m(tmp$ret$3);
|
|
4990
3809
|
var tmp$ret$5;
|
|
4991
3810
|
// Inline function 'org.kodein.di.bind' call
|
|
4992
3811
|
var tmp$ret$4;
|
|
4993
3812
|
// Inline function 'org.kodein.type.generic' call
|
|
4994
3813
|
var tmp_5 = typeToken(createKType(getKClass(CardsGeneratorProvider), arrayOf([]), false));
|
|
4995
3814
|
tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
4996
|
-
tmp$ret$5 = $this$invoke.
|
|
3815
|
+
tmp$ret$5 = $this$invoke.g2i(tmp$ret$4, null, null);
|
|
4997
3816
|
var tmp_6 = tmp$ret$5;
|
|
4998
3817
|
var tmp$ret$7;
|
|
4999
3818
|
// Inline function 'org.kodein.di.singleton' call
|
|
5000
3819
|
var tmp1_singleton = GameServerEngineControllerImpl$createDI$lambda$lambda_0;
|
|
5001
|
-
var tmp_7 = $this$invoke.
|
|
5002
|
-
var tmp_8 = $this$invoke.
|
|
5003
|
-
var tmp_9 = $this$invoke.
|
|
3820
|
+
var tmp_7 = $this$invoke.w2j();
|
|
3821
|
+
var tmp_8 = $this$invoke.x2j();
|
|
3822
|
+
var tmp_9 = $this$invoke.v2l();
|
|
5004
3823
|
var tmp$ret$6;
|
|
5005
3824
|
// Inline function 'org.kodein.type.generic' call
|
|
5006
3825
|
var tmp_10 = typeToken(createKType(getKClass(CardsGeneratorProviderImpl), arrayOf([]), false));
|
|
5007
3826
|
tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
5008
3827
|
tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, tmp1_singleton);
|
|
5009
|
-
tmp_6.
|
|
5010
|
-
$this$invoke.
|
|
5011
|
-
$this$invoke.
|
|
3828
|
+
tmp_6.a2m(tmp$ret$7);
|
|
3829
|
+
$this$invoke.i2i(get_coreModule());
|
|
3830
|
+
$this$invoke.i2i(createGameServerDI($serverConfig, $logicConfig, $botConfig, $externalReducers, $externalMiddlewares));
|
|
5012
3831
|
return Unit_getInstance();
|
|
5013
3832
|
};
|
|
5014
3833
|
}
|
|
5015
3834
|
function GameServerEngineControllerImpl(loggerCallback) {
|
|
5016
3835
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
5017
|
-
this.
|
|
3836
|
+
this.a80_1 = loggerCallback;
|
|
5018
3837
|
var tmp = this;
|
|
5019
|
-
var tmp0_safe_receiver = this.
|
|
3838
|
+
var tmp0_safe_receiver = this.a80_1;
|
|
5020
3839
|
var tmp_0;
|
|
5021
3840
|
if (tmp0_safe_receiver == null) {
|
|
5022
3841
|
tmp_0 = null;
|
|
@@ -5026,38 +3845,38 @@
|
|
|
5026
3845
|
// Inline function 'kotlin.contracts.contract' call
|
|
5027
3846
|
var tmp$ret$0;
|
|
5028
3847
|
// Inline function 'GameServerEngineControllerImpl.logger.<anonymous>' call
|
|
5029
|
-
tmp$ret$0 = new CombinedGameLogger(listOf(createLoggerOutputWithTablePayload(this.
|
|
3848
|
+
tmp$ret$0 = new CombinedGameLogger(listOf(createLoggerOutputWithTablePayload(this.a80_1)));
|
|
5030
3849
|
tmp$ret$1 = tmp$ret$0;
|
|
5031
3850
|
tmp_0 = tmp$ret$1;
|
|
5032
3851
|
}
|
|
5033
3852
|
var tmp1_elvis_lhs = tmp_0;
|
|
5034
|
-
tmp.
|
|
5035
|
-
this.
|
|
5036
|
-
this.
|
|
5037
|
-
this.
|
|
5038
|
-
this.
|
|
5039
|
-
}
|
|
5040
|
-
protoOf(GameServerEngineControllerImpl).
|
|
5041
|
-
return this.
|
|
3853
|
+
tmp.b80_1 = tmp1_elvis_lhs == null ? new PlatformGameLogger() : tmp1_elvis_lhs;
|
|
3854
|
+
this.c80_1 = new ParserHelperImpl(emptyList());
|
|
3855
|
+
this.d80_1 = new GameHelperImpl();
|
|
3856
|
+
this.e80_1 = new GameResourcesImpl();
|
|
3857
|
+
this.f80_1 = new TestHelperImpl(this.b80_1);
|
|
3858
|
+
}
|
|
3859
|
+
protoOf(GameServerEngineControllerImpl).n7v = function () {
|
|
3860
|
+
return this.c80_1;
|
|
5042
3861
|
};
|
|
5043
|
-
protoOf(GameServerEngineControllerImpl).
|
|
5044
|
-
return this.
|
|
3862
|
+
protoOf(GameServerEngineControllerImpl).w7z = function () {
|
|
3863
|
+
return this.d80_1;
|
|
5045
3864
|
};
|
|
5046
|
-
protoOf(GameServerEngineControllerImpl).
|
|
5047
|
-
return this.
|
|
3865
|
+
protoOf(GameServerEngineControllerImpl).x7z = function () {
|
|
3866
|
+
return this.e80_1;
|
|
5048
3867
|
};
|
|
5049
|
-
protoOf(GameServerEngineControllerImpl).
|
|
5050
|
-
return this.
|
|
3868
|
+
protoOf(GameServerEngineControllerImpl).v7z = function () {
|
|
3869
|
+
return this.f80_1;
|
|
5051
3870
|
};
|
|
5052
3871
|
protoOf(GameServerEngineControllerImpl).setEnableLogger = function (enabled) {
|
|
5053
|
-
Logger_getInstance().
|
|
3872
|
+
Logger_getInstance().z30_1 = enabled;
|
|
5054
3873
|
};
|
|
5055
3874
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
5056
3875
|
return this.createGameEngineWithLogic();
|
|
5057
3876
|
};
|
|
5058
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3877
|
+
protoOf(GameServerEngineControllerImpl).y7z = function (reducers, middlewares, isPrivateRoom, finishGameIfAllBots, closeIfBotsAtFinish, dealerStrategy) {
|
|
5059
3878
|
var loggerOutputWithTablePayload = null;
|
|
5060
|
-
var tmp0_safe_receiver = this.
|
|
3879
|
+
var tmp0_safe_receiver = this.a80_1;
|
|
5061
3880
|
var tmp;
|
|
5062
3881
|
if (tmp0_safe_receiver == null) {
|
|
5063
3882
|
tmp = null;
|
|
@@ -5067,7 +3886,7 @@
|
|
|
5067
3886
|
// Inline function 'kotlin.contracts.contract' call
|
|
5068
3887
|
var tmp$ret$0;
|
|
5069
3888
|
// Inline function 'GameServerEngineControllerImpl.createGameEngineWithLogic.<anonymous>' call
|
|
5070
|
-
var loggerOutput = createLoggerOutputWithTablePayload(this.
|
|
3889
|
+
var loggerOutput = createLoggerOutputWithTablePayload(this.a80_1);
|
|
5071
3890
|
loggerOutputWithTablePayload = loggerOutput;
|
|
5072
3891
|
tmp$ret$0 = new CombinedGameLogger(listOf(loggerOutput));
|
|
5073
3892
|
tmp$ret$1 = tmp$ret$0;
|
|
@@ -5122,32 +3941,32 @@
|
|
|
5122
3941
|
var tmp$ret$10;
|
|
5123
3942
|
// Inline function 'org.kodein.di.instance' call
|
|
5124
3943
|
var tmp2_instance = get_direct(di);
|
|
5125
|
-
var tmp_4 = tmp2_instance.
|
|
3944
|
+
var tmp_4 = tmp2_instance.p2j();
|
|
5126
3945
|
var tmp$ret$9;
|
|
5127
3946
|
// Inline function 'org.kodein.type.generic' call
|
|
5128
3947
|
var tmp_5 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
5129
3948
|
tmp$ret$9 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
5130
|
-
tmp$ret$10 = tmp_4.
|
|
3949
|
+
tmp$ret$10 = tmp_4.q2j(tmp$ret$9, null);
|
|
5131
3950
|
var gameServer = tmp$ret$10;
|
|
5132
3951
|
var tmp2_safe_receiver = loggerOutputWithTablePayload;
|
|
5133
3952
|
if (tmp2_safe_receiver == null) {
|
|
5134
3953
|
} else {
|
|
5135
3954
|
var tmp_6 = tmp2_safe_receiver;
|
|
5136
|
-
tmp_6.
|
|
3955
|
+
tmp_6.k50_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda(gameServer);
|
|
5137
3956
|
}
|
|
5138
3957
|
return gameServer;
|
|
5139
3958
|
};
|
|
5140
3959
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
5141
|
-
return this.
|
|
3960
|
+
return this.n7v();
|
|
5142
3961
|
});
|
|
5143
3962
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
5144
|
-
return this.
|
|
3963
|
+
return this.w7z();
|
|
5145
3964
|
});
|
|
5146
3965
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
5147
|
-
return this.
|
|
3966
|
+
return this.x7z();
|
|
5148
3967
|
});
|
|
5149
3968
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
5150
|
-
return this.
|
|
3969
|
+
return this.v7z();
|
|
5151
3970
|
});
|
|
5152
3971
|
function TestHelper() {
|
|
5153
3972
|
}
|
|
@@ -5155,12 +3974,12 @@
|
|
|
5155
3974
|
var tmp$ret$0;
|
|
5156
3975
|
// Inline function 'kotlin.getValue' call
|
|
5157
3976
|
var tmp0_getValue = playerAnswerInteractor$factory_0();
|
|
5158
|
-
tmp$ret$0 = $this.
|
|
3977
|
+
tmp$ret$0 = $this.i80_1.n1();
|
|
5159
3978
|
return tmp$ret$0;
|
|
5160
3979
|
}
|
|
5161
3980
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
5162
3981
|
return function ($this$singleton) {
|
|
5163
|
-
return this$0.
|
|
3982
|
+
return this$0.g80_1;
|
|
5164
3983
|
};
|
|
5165
3984
|
}
|
|
5166
3985
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -5171,22 +3990,22 @@
|
|
|
5171
3990
|
// Inline function 'org.kodein.type.generic' call
|
|
5172
3991
|
var tmp = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
5173
3992
|
tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
5174
|
-
tmp$ret$1 = $this$invoke.
|
|
3993
|
+
tmp$ret$1 = $this$invoke.g2i(tmp$ret$0, null, null);
|
|
5175
3994
|
var tmp_0 = tmp$ret$1;
|
|
5176
3995
|
var tmp$ret$3;
|
|
5177
3996
|
// Inline function 'org.kodein.di.singleton' call
|
|
5178
3997
|
var tmp0_singleton = TestHelperImpl$di$lambda$lambda(this$0);
|
|
5179
|
-
var tmp_1 = $this$invoke.
|
|
5180
|
-
var tmp_2 = $this$invoke.
|
|
5181
|
-
var tmp_3 = $this$invoke.
|
|
3998
|
+
var tmp_1 = $this$invoke.w2j();
|
|
3999
|
+
var tmp_2 = $this$invoke.x2j();
|
|
4000
|
+
var tmp_3 = $this$invoke.v2l();
|
|
5182
4001
|
var tmp$ret$2;
|
|
5183
4002
|
// Inline function 'org.kodein.type.generic' call
|
|
5184
4003
|
var tmp_4 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
5185
4004
|
tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
5186
4005
|
tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, tmp0_singleton);
|
|
5187
|
-
tmp_0.
|
|
5188
|
-
$this$invoke.
|
|
5189
|
-
$this$invoke.
|
|
4006
|
+
tmp_0.a2m(tmp$ret$3);
|
|
4007
|
+
$this$invoke.i2i(jsonModule(emptyList()));
|
|
4008
|
+
$this$invoke.i2i(get_botGameModule());
|
|
5190
4009
|
return Unit_getInstance();
|
|
5191
4010
|
};
|
|
5192
4011
|
}
|
|
@@ -5194,23 +4013,23 @@
|
|
|
5194
4013
|
return emptyMap();
|
|
5195
4014
|
}
|
|
5196
4015
|
function TestHelperImpl(gameLogger) {
|
|
5197
|
-
this.
|
|
4016
|
+
this.g80_1 = gameLogger;
|
|
5198
4017
|
var tmp = this;
|
|
5199
|
-
var tmp_0 =
|
|
5200
|
-
tmp.
|
|
4018
|
+
var tmp_0 = Companion_getInstance_4();
|
|
4019
|
+
tmp.h80_1 = tmp_0.m2i(VOID, TestHelperImpl$di$lambda(this));
|
|
5201
4020
|
var tmp_1 = this;
|
|
5202
4021
|
var tmp$ret$1;
|
|
5203
4022
|
// Inline function 'org.kodein.di.instance' call
|
|
5204
|
-
var tmp0_instance = this.
|
|
4023
|
+
var tmp0_instance = this.h80_1;
|
|
5205
4024
|
var tmp$ret$0;
|
|
5206
4025
|
// Inline function 'org.kodein.type.generic' call
|
|
5207
4026
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
5208
4027
|
tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
5209
4028
|
tmp$ret$1 = Instance(tmp0_instance, tmp$ret$0, null);
|
|
5210
|
-
tmp_1.
|
|
4029
|
+
tmp_1.i80_1 = tmp$ret$1.x2n(this, playerAnswerInteractor$factory());
|
|
5211
4030
|
}
|
|
5212
4031
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
5213
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
4032
|
+
return _get_playerAnswerInteractor__msggz1(this).h4j(playerId, table, botConfig);
|
|
5214
4033
|
};
|
|
5215
4034
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
5216
4035
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -5218,7 +4037,7 @@
|
|
|
5218
4037
|
var tmp$ret$0;
|
|
5219
4038
|
$l$block_0: {
|
|
5220
4039
|
// Inline function 'kotlin.collections.any' call
|
|
5221
|
-
var tmp0_any = mechanicAction.
|
|
4040
|
+
var tmp0_any = mechanicAction.c4q();
|
|
5222
4041
|
var tmp;
|
|
5223
4042
|
if (isInterface(tmp0_any, Collection)) {
|
|
5224
4043
|
tmp = tmp0_any.l();
|
|
@@ -5253,7 +4072,7 @@
|
|
|
5253
4072
|
var tmp$ret$0;
|
|
5254
4073
|
$l$block_0: {
|
|
5255
4074
|
// Inline function 'kotlin.collections.any' call
|
|
5256
|
-
var tmp0_any = action.
|
|
4075
|
+
var tmp0_any = action.c4q();
|
|
5257
4076
|
var tmp;
|
|
5258
4077
|
if (isInterface(tmp0_any, Collection)) {
|
|
5259
4078
|
tmp = tmp0_any.l();
|
|
@@ -5294,13 +4113,13 @@
|
|
|
5294
4113
|
}, null);
|
|
5295
4114
|
}
|
|
5296
4115
|
//region block: post-declaration
|
|
5297
|
-
protoOf(UpdateServerConfigAction).
|
|
5298
|
-
protoOf(RoomAction).
|
|
5299
|
-
protoOf(RoomWasCreatedAction).
|
|
5300
|
-
protoOf(RoomWasDeletedAction).
|
|
4116
|
+
protoOf(UpdateServerConfigAction).g2t = get_actionTag;
|
|
4117
|
+
protoOf(RoomAction).g2t = get_actionTag;
|
|
4118
|
+
protoOf(RoomWasCreatedAction).g2t = get_actionTag;
|
|
4119
|
+
protoOf(RoomWasDeletedAction).g2t = get_actionTag;
|
|
5301
4120
|
protoOf(RoomWasDeletedAction).notValidateWhenFinishing = notValidateWhenFinishing;
|
|
5302
4121
|
protoOf(PlayerReconnectionWaitingTimerTag).notValidateWhenFinished = notValidateWhenFinished;
|
|
5303
|
-
protoOf(PlayerReconnectionWaitingTimerTag).
|
|
4122
|
+
protoOf(PlayerReconnectionWaitingTimerTag).a4o = notValidateTimerReset;
|
|
5304
4123
|
protoOf(GameResourcesImpl).createBotUser = createBotUser;
|
|
5305
4124
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
5306
4125
|
//endregion
|