raspberry_games_server_game_logic 1.8.323 → 1.8.325
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/Logic_Debertz-core.js +37 -26
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +175 -88
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +12 -5
- package/Logic_Debertz-game_server.js +31 -20
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlinx-coroutines-core.js +7 -7
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
package/Logic_Debertz-engine.js
CHANGED
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
var initMetadataForObject = kotlin_kotlin.$_$.ac;
|
|
148
148
|
var checkIndexOverflow = kotlin_kotlin.$_$.s6;
|
|
149
149
|
var getPoint = kotlin_io_raspberryapps_game_engine_core.$_$.e1;
|
|
150
|
-
var Toggles_instance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
150
|
+
var Toggles_instance = kotlin_io_raspberryapps_game_engine_core.$_$.w4;
|
|
151
151
|
var MechanicException = kotlin_io_raspberryapps_game_engine_core.$_$.b;
|
|
152
152
|
var asJsReadonlyArrayView = kotlin_kotlin.$_$.x5;
|
|
153
153
|
var KtList = kotlin_kotlin.$_$.y5;
|
|
@@ -180,13 +180,13 @@
|
|
|
180
180
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
181
181
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
|
|
182
182
|
var Companion_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.o;
|
|
183
|
-
var Companion_getInstance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
183
|
+
var Companion_getInstance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.r4;
|
|
184
184
|
var PolymorphicSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
|
|
185
|
-
var Companion_getInstance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
186
|
-
var Companion_getInstance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
187
|
-
var RestartGameReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
185
|
+
var Companion_getInstance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.q4;
|
|
186
|
+
var Companion_getInstance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.j4;
|
|
187
|
+
var RestartGameReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.u4;
|
|
188
188
|
var ObjectSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a;
|
|
189
|
-
var $serializer_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
189
|
+
var $serializer_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.m4;
|
|
190
190
|
var mapToDto = kotlin_io_raspberryapps_game_engine_core.$_$.a1;
|
|
191
191
|
var mapFromDto = kotlin_io_raspberryapps_game_engine_core.$_$.u;
|
|
192
192
|
var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.z2;
|
|
@@ -209,21 +209,21 @@
|
|
|
209
209
|
var Duration = kotlin_kotlin.$_$.yf;
|
|
210
210
|
var toIntOrNull = kotlin_kotlin.$_$.lf;
|
|
211
211
|
var RulesDto = kotlin_io_raspberryapps_game_engine_core.$_$.b1;
|
|
212
|
-
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
213
|
-
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
212
|
+
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.k4;
|
|
213
|
+
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.i4;
|
|
214
214
|
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.o3;
|
|
215
215
|
var toDuration_0 = kotlin_kotlin.$_$.bg;
|
|
216
216
|
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.n3;
|
|
217
217
|
var mapFromDto_2 = kotlin_io_raspberryapps_game_engine_core.$_$.t;
|
|
218
218
|
var mapToDto_2 = kotlin_io_raspberryapps_game_engine_core.$_$.y;
|
|
219
219
|
var toInstant = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.e;
|
|
220
|
-
var $serializer_getInstance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
220
|
+
var $serializer_getInstance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.n4;
|
|
221
221
|
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p;
|
|
222
222
|
var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q;
|
|
223
|
-
var Companion_getInstance_5 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
223
|
+
var Companion_getInstance_5 = kotlin_io_raspberryapps_game_engine_core.$_$.l4;
|
|
224
224
|
var LongSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
|
|
225
225
|
var LinkedHashMapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
|
|
226
|
-
var $serializer_getInstance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
226
|
+
var $serializer_getInstance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.o4;
|
|
227
227
|
var InstantIso8601Serializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.a;
|
|
228
228
|
var PlayerState = kotlin_io_raspberryapps_game_engine_core.$_$.i;
|
|
229
229
|
var charSequenceLength = kotlin_kotlin.$_$.jb;
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
var PolymorphicModuleBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
|
|
248
248
|
var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x2;
|
|
249
249
|
var TerminationGameReasonDto = kotlin_io_raspberryapps_game_engine_core.$_$.c1;
|
|
250
|
-
var ProcessingReasonDto_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
250
|
+
var ProcessingReasonDto_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.p4;
|
|
251
251
|
var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.m;
|
|
252
252
|
var CardNumberComparator_instance = kotlin_io_raspberryapps_cardgame_core.$_$.m;
|
|
253
253
|
var singleOrNull = kotlin_kotlin.$_$.j9;
|
|
@@ -291,14 +291,14 @@
|
|
|
291
291
|
var average = kotlin_kotlin.$_$.o6;
|
|
292
292
|
var mapToFinishReason = kotlin_io_raspberryapps_game_engine_core.$_$.q;
|
|
293
293
|
var StopTimerAction = kotlin_io_raspberryapps_game_engine_core.$_$.z1;
|
|
294
|
-
var TimerType_DELAY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
294
|
+
var TimerType_DELAY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.a4;
|
|
295
295
|
var StartTimerAction = kotlin_io_raspberryapps_game_engine_core.$_$.y1;
|
|
296
296
|
var PlayerConnectionState_DISCONNECTING_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.m3;
|
|
297
297
|
var toLong = kotlin_kotlin.$_$.yc;
|
|
298
298
|
var PlayerReturnsReason = kotlin_io_raspberryapps_game_engine_core.$_$.k1;
|
|
299
299
|
var nextToPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.r;
|
|
300
300
|
var previousPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.s;
|
|
301
|
-
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
301
|
+
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.s4;
|
|
302
302
|
var contains_0 = kotlin_kotlin.$_$.ae;
|
|
303
303
|
var split = kotlin_kotlin.$_$.bf;
|
|
304
304
|
var UserInfoData = kotlin_io_raspberryapps_cardgame_random.$_$.c;
|
|
@@ -317,6 +317,7 @@
|
|
|
317
317
|
var swap = kotlin_io_raspberryapps_game_engine_core.$_$.y2;
|
|
318
318
|
var BufferedAction = kotlin_io_raspberryapps_game_engine_core.$_$.v1;
|
|
319
319
|
var IgnoreBufferForAction = kotlin_io_raspberryapps_game_engine_core.$_$.w1;
|
|
320
|
+
var ProcessingReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.t4;
|
|
320
321
|
var ReleaseBufferTriggerAction = kotlin_io_raspberryapps_game_engine_core.$_$.x1;
|
|
321
322
|
var CoreConfig = kotlin_io_raspberryapps_game_engine_core.$_$.g1;
|
|
322
323
|
var FileSystem = kotlin_io_raspberryapps_game_engine_core.$_$.p1;
|
|
@@ -324,7 +325,7 @@
|
|
|
324
325
|
var InstanceOrNull = kotlin_org_kodein_di_kodein_di.$_$.e;
|
|
325
326
|
var timerMiddleware = kotlin_io_raspberryapps_game_engine_core.$_$.e2;
|
|
326
327
|
var assertIfMainThread = kotlin_io_raspberryapps_game_engine_core.$_$.j3;
|
|
327
|
-
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
328
|
+
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.x4;
|
|
328
329
|
var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.h2;
|
|
329
330
|
var middleware = kotlin_io_raspberryapps_game_engine_core.$_$.l2;
|
|
330
331
|
var filterPlayerTurn = kotlin_io_raspberryapps_game_engine_core.$_$.n;
|
|
@@ -366,13 +367,13 @@
|
|
|
366
367
|
var BufferOverflow_DROP_OLDEST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
|
|
367
368
|
var Flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
368
369
|
var get_atomicfu$reentrantLock = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
|
|
369
|
-
var LogType_DEBUG_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
370
|
-
var LogType_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
370
|
+
var LogType_DEBUG_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.b4;
|
|
371
|
+
var LogType_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.c4;
|
|
371
372
|
var stackTraceToString = kotlin_kotlin.$_$.uh;
|
|
372
373
|
var take_0 = kotlin_kotlin.$_$.hf;
|
|
373
|
-
var LogType_INFO_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
374
|
-
var LogType_VERBOSE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
375
|
-
var LogType_WARN_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
374
|
+
var LogType_INFO_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.d4;
|
|
375
|
+
var LogType_VERBOSE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.e4;
|
|
376
|
+
var LogType_WARN_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.f4;
|
|
376
377
|
var get_entries = kotlin_io_raspberryapps_game_engine_core.$_$.p2;
|
|
377
378
|
var LoggerEnabledTrigger = kotlin_io_raspberryapps_cardgame_logger.$_$.d;
|
|
378
379
|
var isArray = kotlin_kotlin.$_$.bc;
|
|
@@ -28775,8 +28776,8 @@
|
|
|
28775
28776
|
tmp0_serialDesc.y4f('gameId', false);
|
|
28776
28777
|
tmp0_serialDesc.y4f('createdAt', false);
|
|
28777
28778
|
tmp0_serialDesc.y4f('round', false);
|
|
28778
|
-
tmp0_serialDesc.y4f('gameWinners',
|
|
28779
|
-
tmp0_serialDesc.y4f('metadata',
|
|
28779
|
+
tmp0_serialDesc.y4f('gameWinners', false);
|
|
28780
|
+
tmp0_serialDesc.y4f('metadata', false);
|
|
28780
28781
|
this.f8c_1 = tmp0_serialDesc;
|
|
28781
28782
|
}
|
|
28782
28783
|
protoOf($serializer_88).g8c = function (encoder, value) {
|
|
@@ -28786,12 +28787,8 @@
|
|
|
28786
28787
|
tmp1_output.y49(tmp0_desc, 0, value.x7t_1);
|
|
28787
28788
|
tmp1_output.y49(tmp0_desc, 1, value.y7t_1);
|
|
28788
28789
|
tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_94(), value.z7t_1);
|
|
28789
|
-
|
|
28790
|
-
|
|
28791
|
-
}
|
|
28792
|
-
if (tmp1_output.g4a(tmp0_desc, 4) ? true : !(value.b7u_1 == null)) {
|
|
28793
|
-
tmp1_output.c4a(tmp0_desc, 4, $serializer_getInstance_92(), value.b7u_1);
|
|
28794
|
-
}
|
|
28790
|
+
tmp1_output.c4a(tmp0_desc, 3, tmp2_cached[3], value.a7u_1);
|
|
28791
|
+
tmp1_output.c4a(tmp0_desc, 4, $serializer_getInstance_92(), value.b7u_1);
|
|
28795
28792
|
tmp1_output.l48(tmp0_desc);
|
|
28796
28793
|
};
|
|
28797
28794
|
protoOf($serializer_88).x44 = function (encoder, value) {
|
|
@@ -28871,20 +28868,14 @@
|
|
|
28871
28868
|
return $serializer_instance_88;
|
|
28872
28869
|
}
|
|
28873
28870
|
function GameHistoryDto_init_$Init$(seen0, gameId, createdAt, round, gameWinners, metadata, serializationConstructorMarker, $this) {
|
|
28874
|
-
if (!(
|
|
28875
|
-
throwMissingFieldException(seen0,
|
|
28871
|
+
if (!(31 === (31 & seen0))) {
|
|
28872
|
+
throwMissingFieldException(seen0, 31, $serializer_getInstance_91().f8c_1);
|
|
28876
28873
|
}
|
|
28877
28874
|
$this.x7t_1 = gameId;
|
|
28878
28875
|
$this.y7t_1 = createdAt;
|
|
28879
28876
|
$this.z7t_1 = round;
|
|
28880
|
-
|
|
28881
|
-
|
|
28882
|
-
else
|
|
28883
|
-
$this.a7u_1 = gameWinners;
|
|
28884
|
-
if (0 === (seen0 & 16))
|
|
28885
|
-
$this.b7u_1 = null;
|
|
28886
|
-
else
|
|
28887
|
-
$this.b7u_1 = metadata;
|
|
28877
|
+
$this.a7u_1 = gameWinners;
|
|
28878
|
+
$this.b7u_1 = metadata;
|
|
28888
28879
|
return $this;
|
|
28889
28880
|
}
|
|
28890
28881
|
function GameHistoryDto_init_$Create$(seen0, gameId, createdAt, round, gameWinners, metadata, serializationConstructorMarker) {
|
|
@@ -28892,8 +28883,6 @@
|
|
|
28892
28883
|
}
|
|
28893
28884
|
function GameHistoryDto(gameId, createdAt, round, gameWinners, metadata) {
|
|
28894
28885
|
Companion_getInstance_129();
|
|
28895
|
-
gameWinners = gameWinners === VOID ? null : gameWinners;
|
|
28896
|
-
metadata = metadata === VOID ? null : metadata;
|
|
28897
28886
|
this.x7t_1 = gameId;
|
|
28898
28887
|
this.y7t_1 = createdAt;
|
|
28899
28888
|
this.z7t_1 = round;
|
|
@@ -43128,7 +43117,7 @@
|
|
|
43128
43117
|
} else {
|
|
43129
43118
|
tmp_1 = null;
|
|
43130
43119
|
}
|
|
43131
|
-
return tmp.
|
|
43120
|
+
return tmp.fromTableWithAnalytics(reason, tmp_0, table, tmp_1);
|
|
43132
43121
|
};
|
|
43133
43122
|
protoOf(PlayerConnectionInteractor).h8t = function (reason, table, debugReason, transitionPlayersForNewGame, $super) {
|
|
43134
43123
|
transitionPlayersForNewGame = transitionPlayersForNewGame === VOID ? emptyList() : transitionPlayersForNewGame;
|
|
@@ -47475,16 +47464,21 @@
|
|
|
47475
47464
|
var tmp6_isRoundHistorySaved = tmp;
|
|
47476
47465
|
return new FinishingGameMechanicAction(reason, isGameFinished, transition, tmp4_sessionAnalytics, tmp5_gameHistory, tmp6_isRoundHistorySaved);
|
|
47477
47466
|
};
|
|
47478
|
-
protoOf(Companion_161).
|
|
47467
|
+
protoOf(Companion_161).fromTableWithAnalytics = function (reason, isGameFinished, table, transition, $super) {
|
|
47479
47468
|
transition = transition === VOID ? null : transition;
|
|
47480
47469
|
return this.v90(reason, isGameFinished, table, transition);
|
|
47481
47470
|
};
|
|
47471
|
+
protoOf(Companion_161).fromTable = function (table) {
|
|
47472
|
+
var tmp2_reason = ProcessingReason_getInstance();
|
|
47473
|
+
var tmp1_elvis_lhs = table == null ? null : table.isGameFinished;
|
|
47474
|
+
var tmp3_isGameFinished = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
47475
|
+
return new FinishingGameMechanicAction(tmp2_reason, tmp3_isGameFinished, null, null, null, true);
|
|
47476
|
+
};
|
|
47482
47477
|
var Companion_instance_166;
|
|
47483
47478
|
function Companion_getInstance_168() {
|
|
47484
47479
|
return Companion_instance_166;
|
|
47485
47480
|
}
|
|
47486
47481
|
function FinishingGameMechanicAction(reason, isGameFinished, transition, sessionAnalytics, gameHistory, isRoundHistorySaved, aid) {
|
|
47487
|
-
transition = transition === VOID ? null : transition;
|
|
47488
47482
|
sessionAnalytics = sessionAnalytics === VOID ? null : sessionAnalytics;
|
|
47489
47483
|
gameHistory = gameHistory === VOID ? null : gameHistory;
|
|
47490
47484
|
isRoundHistorySaved = isRoundHistorySaved === VOID ? true : isRoundHistorySaved;
|
|
@@ -55522,7 +55516,7 @@
|
|
|
55522
55516
|
}
|
|
55523
55517
|
function GameHelper() {
|
|
55524
55518
|
}
|
|
55525
|
-
function
|
|
55519
|
+
function prepareFilterObjectInternal($this, map) {
|
|
55526
55520
|
var jsObject = {};
|
|
55527
55521
|
var tmp = map.k2('players');
|
|
55528
55522
|
var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
|
|
@@ -55539,7 +55533,7 @@
|
|
|
55539
55533
|
while (inductionVariable < last) {
|
|
55540
55534
|
var element = tmp0_safe_receiver[inductionVariable];
|
|
55541
55535
|
inductionVariable = inductionVariable + 1 | 0;
|
|
55542
|
-
// Inline function 'GameHelperImpl.
|
|
55536
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
55543
55537
|
validatePlayers($this, element);
|
|
55544
55538
|
}
|
|
55545
55539
|
tmp_0 = tmp0_safe_receiver;
|
|
@@ -55552,7 +55546,7 @@
|
|
|
55552
55546
|
// Inline function 'kotlin.takeIf' call
|
|
55553
55547
|
// Inline function 'kotlin.contracts.contract' call
|
|
55554
55548
|
var tmp_2;
|
|
55555
|
-
// Inline function 'GameHelperImpl.
|
|
55549
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
55556
55550
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55557
55551
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
55558
55552
|
if (!(tmp1_safe_receiver.length === 0)) {
|
|
@@ -55578,7 +55572,7 @@
|
|
|
55578
55572
|
while (inductionVariable_0 < last_0) {
|
|
55579
55573
|
var element_0 = tmp2_safe_receiver[inductionVariable_0];
|
|
55580
55574
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
55581
|
-
// Inline function 'GameHelperImpl.
|
|
55575
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
55582
55576
|
validatePoints($this, element_0);
|
|
55583
55577
|
}
|
|
55584
55578
|
tmp_4 = tmp2_safe_receiver;
|
|
@@ -55591,7 +55585,7 @@
|
|
|
55591
55585
|
// Inline function 'kotlin.takeIf' call
|
|
55592
55586
|
// Inline function 'kotlin.contracts.contract' call
|
|
55593
55587
|
var tmp_6;
|
|
55594
|
-
// Inline function 'GameHelperImpl.
|
|
55588
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
55595
55589
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55596
55590
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
55597
55591
|
if (!(tmp3_safe_receiver.length === 0)) {
|
|
@@ -55617,7 +55611,7 @@
|
|
|
55617
55611
|
while (inductionVariable_1 < last_1) {
|
|
55618
55612
|
var element_1 = tmp4_safe_receiver[inductionVariable_1];
|
|
55619
55613
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
55620
|
-
// Inline function 'GameHelperImpl.
|
|
55614
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
55621
55615
|
validateTimeoutTime($this, element_1);
|
|
55622
55616
|
}
|
|
55623
55617
|
tmp_8 = tmp4_safe_receiver;
|
|
@@ -55630,7 +55624,7 @@
|
|
|
55630
55624
|
// Inline function 'kotlin.takeIf' call
|
|
55631
55625
|
// Inline function 'kotlin.contracts.contract' call
|
|
55632
55626
|
var tmp_10;
|
|
55633
|
-
// Inline function 'GameHelperImpl.
|
|
55627
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
55634
55628
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55635
55629
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
55636
55630
|
if (!(tmp5_safe_receiver.length === 0)) {
|
|
@@ -55641,7 +55635,7 @@
|
|
|
55641
55635
|
tmp_9 = tmp_10;
|
|
55642
55636
|
}
|
|
55643
55637
|
var timeoutTime = tmp_9;
|
|
55644
|
-
var tmp_11 = map.k2('
|
|
55638
|
+
var tmp_11 = map.k2('leagues');
|
|
55645
55639
|
var tmp6_safe_receiver = (tmp_11 == null ? true : isArray(tmp_11)) ? tmp_11 : null;
|
|
55646
55640
|
var tmp_12;
|
|
55647
55641
|
if (tmp6_safe_receiver == null) {
|
|
@@ -55656,8 +55650,8 @@
|
|
|
55656
55650
|
while (inductionVariable_2 < last_2) {
|
|
55657
55651
|
var element_2 = tmp6_safe_receiver[inductionVariable_2];
|
|
55658
55652
|
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
55659
|
-
// Inline function 'GameHelperImpl.
|
|
55660
|
-
|
|
55653
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
55654
|
+
validateLeague($this, element_2);
|
|
55661
55655
|
}
|
|
55662
55656
|
tmp_12 = tmp6_safe_receiver;
|
|
55663
55657
|
}
|
|
@@ -55669,7 +55663,7 @@
|
|
|
55669
55663
|
// Inline function 'kotlin.takeIf' call
|
|
55670
55664
|
// Inline function 'kotlin.contracts.contract' call
|
|
55671
55665
|
var tmp_14;
|
|
55672
|
-
// Inline function 'GameHelperImpl.
|
|
55666
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
55673
55667
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55674
55668
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
55675
55669
|
if (!(tmp7_safe_receiver.length === 0)) {
|
|
@@ -55679,40 +55673,79 @@
|
|
|
55679
55673
|
}
|
|
55680
55674
|
tmp_13 = tmp_14;
|
|
55681
55675
|
}
|
|
55682
|
-
var
|
|
55683
|
-
var tmp_15 = map.k2('
|
|
55684
|
-
var
|
|
55676
|
+
var leagues = tmp_13;
|
|
55677
|
+
var tmp_15 = map.k2('rulesPreset');
|
|
55678
|
+
var tmp8_safe_receiver = (tmp_15 == null ? true : isArray(tmp_15)) ? tmp_15 : null;
|
|
55685
55679
|
var tmp_16;
|
|
55680
|
+
if (tmp8_safe_receiver == null) {
|
|
55681
|
+
tmp_16 = null;
|
|
55682
|
+
} else {
|
|
55683
|
+
// Inline function 'kotlin.collections.onEach' call
|
|
55684
|
+
// Inline function 'kotlin.apply' call
|
|
55685
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
55686
|
+
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
55687
|
+
var inductionVariable_3 = 0;
|
|
55688
|
+
var last_3 = tmp8_safe_receiver.length;
|
|
55689
|
+
while (inductionVariable_3 < last_3) {
|
|
55690
|
+
var element_3 = tmp8_safe_receiver[inductionVariable_3];
|
|
55691
|
+
inductionVariable_3 = inductionVariable_3 + 1 | 0;
|
|
55692
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
55693
|
+
validateRulesSetType($this, element_3);
|
|
55694
|
+
}
|
|
55695
|
+
tmp_16 = tmp8_safe_receiver;
|
|
55696
|
+
}
|
|
55697
|
+
var tmp9_safe_receiver = tmp_16;
|
|
55698
|
+
var tmp_17;
|
|
55699
|
+
if (tmp9_safe_receiver == null) {
|
|
55700
|
+
tmp_17 = null;
|
|
55701
|
+
} else {
|
|
55702
|
+
// Inline function 'kotlin.takeIf' call
|
|
55703
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
55704
|
+
var tmp_18;
|
|
55705
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
55706
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55707
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
55708
|
+
if (!(tmp9_safe_receiver.length === 0)) {
|
|
55709
|
+
tmp_18 = tmp9_safe_receiver;
|
|
55710
|
+
} else {
|
|
55711
|
+
tmp_18 = null;
|
|
55712
|
+
}
|
|
55713
|
+
tmp_17 = tmp_18;
|
|
55714
|
+
}
|
|
55715
|
+
var rulesPreset = tmp_17;
|
|
55716
|
+
var tmp_19 = map.k2('isChatEnabled');
|
|
55717
|
+
var isChatEnabled = (!(tmp_19 == null) ? typeof tmp_19 === 'boolean' : false) ? tmp_19 : null;
|
|
55718
|
+
var tmp_20;
|
|
55686
55719
|
if (players == null) {
|
|
55687
55720
|
// Inline function 'kotlin.arrayOf' call
|
|
55688
55721
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
55689
55722
|
// Inline function 'kotlin.js.asDynamic' call
|
|
55690
|
-
|
|
55723
|
+
tmp_20 = [2, 3, 4, 5];
|
|
55691
55724
|
} else {
|
|
55692
|
-
|
|
55725
|
+
tmp_20 = players;
|
|
55693
55726
|
}
|
|
55694
|
-
jsObject['players'] =
|
|
55695
|
-
var
|
|
55727
|
+
jsObject['players'] = tmp_20;
|
|
55728
|
+
var tmp_21;
|
|
55696
55729
|
if (points == null) {
|
|
55697
55730
|
// Inline function 'kotlin.arrayOf' call
|
|
55698
55731
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
55699
55732
|
// Inline function 'kotlin.js.asDynamic' call
|
|
55700
|
-
|
|
55733
|
+
tmp_21 = [301, 501, 1001];
|
|
55701
55734
|
} else {
|
|
55702
|
-
|
|
55735
|
+
tmp_21 = points;
|
|
55703
55736
|
}
|
|
55704
|
-
jsObject['points'] =
|
|
55705
|
-
var
|
|
55737
|
+
jsObject['points'] = tmp_21;
|
|
55738
|
+
var tmp_22;
|
|
55706
55739
|
if (timeoutTime == null) {
|
|
55707
55740
|
// Inline function 'kotlin.arrayOf' call
|
|
55708
55741
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
55709
55742
|
// Inline function 'kotlin.js.asDynamic' call
|
|
55710
|
-
|
|
55743
|
+
tmp_22 = [15, 30, 45];
|
|
55711
55744
|
} else {
|
|
55712
|
-
|
|
55745
|
+
tmp_22 = timeoutTime;
|
|
55713
55746
|
}
|
|
55714
|
-
jsObject['timeoutTime'] =
|
|
55715
|
-
var
|
|
55747
|
+
jsObject['timeoutTime'] = tmp_22;
|
|
55748
|
+
var tmp_23;
|
|
55716
55749
|
if (rulesPreset == null) {
|
|
55717
55750
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
55718
55751
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -55722,23 +55755,47 @@
|
|
|
55722
55755
|
var tmp0_iterator = this_0.j();
|
|
55723
55756
|
while (tmp0_iterator.k()) {
|
|
55724
55757
|
var item = tmp0_iterator.l();
|
|
55725
|
-
// Inline function 'GameHelperImpl.
|
|
55726
|
-
var tmp$ret$
|
|
55727
|
-
destination.e(tmp$ret$
|
|
55758
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
55759
|
+
var tmp$ret$39 = item.q2_1;
|
|
55760
|
+
destination.e(tmp$ret$39);
|
|
55761
|
+
}
|
|
55762
|
+
tmp_23 = copyToArray(destination);
|
|
55763
|
+
} else {
|
|
55764
|
+
tmp_23 = rulesPreset;
|
|
55765
|
+
}
|
|
55766
|
+
jsObject['rulesPreset'] = tmp_23;
|
|
55767
|
+
var tmp_24;
|
|
55768
|
+
if (leagues == null) {
|
|
55769
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
55770
|
+
// Inline function 'kotlin.collections.map' call
|
|
55771
|
+
var this_1 = get_entries_0();
|
|
55772
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
55773
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
55774
|
+
var tmp0_iterator_0 = this_1.j();
|
|
55775
|
+
while (tmp0_iterator_0.k()) {
|
|
55776
|
+
var item_0 = tmp0_iterator_0.l();
|
|
55777
|
+
// Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
|
|
55778
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
55779
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
55780
|
+
var tmp$ret$45 = item_0.q2_1.toLowerCase();
|
|
55781
|
+
destination_0.e(tmp$ret$45);
|
|
55728
55782
|
}
|
|
55729
|
-
|
|
55783
|
+
tmp_24 = copyToArray(destination_0);
|
|
55730
55784
|
} else {
|
|
55731
|
-
|
|
55785
|
+
tmp_24 = leagues;
|
|
55732
55786
|
}
|
|
55733
|
-
jsObject['
|
|
55787
|
+
jsObject['leagues'] = tmp_24;
|
|
55734
55788
|
jsObject['isChatEnabled'] = isChatEnabled;
|
|
55735
55789
|
return jsObject;
|
|
55736
55790
|
}
|
|
55737
|
-
function isValidConfig($this, players, points, timeoutTime, rulesPreset, rules) {
|
|
55791
|
+
function isValidConfig($this, players, points, timeoutTime, rulesPreset, league, rules) {
|
|
55738
55792
|
validatePoints($this, points);
|
|
55739
55793
|
validatePlayers($this, players);
|
|
55740
55794
|
validateTimeoutTime($this, timeoutTime);
|
|
55741
55795
|
validateRulesSetType($this, rulesPreset);
|
|
55796
|
+
if (!(league == null)) {
|
|
55797
|
+
validateLeague($this, league);
|
|
55798
|
+
}
|
|
55742
55799
|
validateRules($this, rules);
|
|
55743
55800
|
return true;
|
|
55744
55801
|
}
|
|
@@ -55982,6 +56039,22 @@
|
|
|
55982
56039
|
throw IllegalStateException_init_$Create$('Not valid points mode ' + points);
|
|
55983
56040
|
}
|
|
55984
56041
|
}
|
|
56042
|
+
function validateLeague($this, league) {
|
|
56043
|
+
// Inline function 'kotlin.collections.map' call
|
|
56044
|
+
var this_0 = get_entries_0();
|
|
56045
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
56046
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
56047
|
+
var tmp0_iterator = this_0.j();
|
|
56048
|
+
while (tmp0_iterator.k()) {
|
|
56049
|
+
var item = tmp0_iterator.l();
|
|
56050
|
+
// Inline function 'GameHelperImpl.validateLeague.<anonymous>' call
|
|
56051
|
+
var tmp$ret$0 = item.q2_1;
|
|
56052
|
+
destination.e(tmp$ret$0);
|
|
56053
|
+
}
|
|
56054
|
+
if (!destination.v1(league)) {
|
|
56055
|
+
throw IllegalStateException_init_$Create$('Not valid league ' + league);
|
|
56056
|
+
}
|
|
56057
|
+
}
|
|
55985
56058
|
function validateRulesSetType($this, rulesSetType) {
|
|
55986
56059
|
// Inline function 'kotlin.collections.map' call
|
|
55987
56060
|
var this_0 = get_entries_3();
|
|
@@ -56322,13 +56395,13 @@
|
|
|
56322
56395
|
tmp_0 = tmp0_safe_receiver;
|
|
56323
56396
|
}
|
|
56324
56397
|
var limit = tmp_0;
|
|
56325
|
-
var jsObject =
|
|
56398
|
+
var jsObject = prepareFilterObjectInternal(this, map);
|
|
56326
56399
|
jsObject['limit'] = limit == null ? 20 : limit;
|
|
56327
56400
|
return jsObject;
|
|
56328
56401
|
};
|
|
56329
56402
|
protoOf(GameHelperImpl).prepareConfigObject = function (config) {
|
|
56330
56403
|
var map = mapOfObject(config);
|
|
56331
|
-
return
|
|
56404
|
+
return prepareFilterObjectInternal(this, map);
|
|
56332
56405
|
};
|
|
56333
56406
|
protoOf(GameHelperImpl).isValidConfigObject = function (config) {
|
|
56334
56407
|
var map = mapOfObject(config);
|
|
@@ -56341,13 +56414,14 @@
|
|
|
56341
56414
|
var tmp_4 = (!(tmp_3 == null) ? typeof tmp_3 === 'number' : false) ? tmp_3 : THROW_CCE();
|
|
56342
56415
|
var tmp_5 = getValue(map, 'rulesPreset');
|
|
56343
56416
|
var tmp_6 = (!(tmp_5 == null) ? typeof tmp_5 === 'string' : false) ? tmp_5 : THROW_CCE();
|
|
56344
|
-
var tmp_7;
|
|
56417
|
+
var tmp_7 = map.k2('league');
|
|
56418
|
+
var tmp_8;
|
|
56345
56419
|
if (rules != null && rules != undefined) {
|
|
56346
|
-
|
|
56420
|
+
tmp_8 = mapRulesObject(this, rules);
|
|
56347
56421
|
} else {
|
|
56348
|
-
|
|
56422
|
+
tmp_8 = null;
|
|
56349
56423
|
}
|
|
56350
|
-
return isValidConfig(this, tmp_0, tmp_2, tmp_4, tmp_6, tmp_7);
|
|
56424
|
+
return isValidConfig(this, tmp_0, tmp_2, tmp_4, tmp_6, tmp_7, tmp_8);
|
|
56351
56425
|
};
|
|
56352
56426
|
protoOf(GameHelperImpl).getRulesByType = function (rulesSetType) {
|
|
56353
56427
|
var tmp;
|
|
@@ -56400,6 +56474,12 @@
|
|
|
56400
56474
|
protoOf(GameHelperImpl).mapRulesSetType = function (name) {
|
|
56401
56475
|
return valueOf_6(name);
|
|
56402
56476
|
};
|
|
56477
|
+
protoOf(GameHelperImpl).mapToLeague = function (name) {
|
|
56478
|
+
// Inline function 'kotlin.text.uppercase' call
|
|
56479
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
56480
|
+
var tmp$ret$1 = name.toUpperCase();
|
|
56481
|
+
return valueOf_0(tmp$ret$1);
|
|
56482
|
+
};
|
|
56403
56483
|
function GameResources() {
|
|
56404
56484
|
}
|
|
56405
56485
|
var AvatarSet_ORIGIN_instance;
|
|
@@ -56748,6 +56828,12 @@
|
|
|
56748
56828
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
56749
56829
|
return this.v9h_1.z8s();
|
|
56750
56830
|
};
|
|
56831
|
+
protoOf(RatingHelperImpl).mapToLeague = function (name) {
|
|
56832
|
+
// Inline function 'kotlin.text.uppercase' call
|
|
56833
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
56834
|
+
var tmp$ret$1 = name.toUpperCase();
|
|
56835
|
+
return valueOf_0(tmp$ret$1);
|
|
56836
|
+
};
|
|
56751
56837
|
function engineHelpersModule() {
|
|
56752
56838
|
return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
|
|
56753
56839
|
}
|
|
@@ -58383,12 +58469,13 @@
|
|
|
58383
58469
|
_.$_$.a4 = GameStoreContract;
|
|
58384
58470
|
_.$_$.b4 = GameStore;
|
|
58385
58471
|
_.$_$.c4 = StateProvider;
|
|
58386
|
-
_.$_$.d4 =
|
|
58387
|
-
_.$_$.e4 =
|
|
58388
|
-
_.$_$.f4 =
|
|
58389
|
-
_.$_$.g4 =
|
|
58390
|
-
_.$_$.h4 =
|
|
58391
|
-
_.$_$.i4 =
|
|
58472
|
+
_.$_$.d4 = RoomMode_REVENGE_getInstance;
|
|
58473
|
+
_.$_$.e4 = GameLifecycleState_CREATED_getInstance;
|
|
58474
|
+
_.$_$.f4 = UserActionPayload_init_$Create$;
|
|
58475
|
+
_.$_$.g4 = Companion_instance_145;
|
|
58476
|
+
_.$_$.h4 = Companion_instance_166;
|
|
58477
|
+
_.$_$.i4 = Companion_instance_168;
|
|
58478
|
+
_.$_$.j4 = Companion_instance_169;
|
|
58392
58479
|
//endregion
|
|
58393
58480
|
return _;
|
|
58394
58481
|
}));
|