raspberry_games_server_game_logic 1.8.325 → 1.8.327
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.
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
return tmp;
|
|
378
378
|
}
|
|
379
379
|
initMetadataForInterface(AbstractWithOffsetBuilder, 'AbstractWithOffsetBuilder', VOID, VOID, [WithUtcOffset]);
|
|
380
|
-
initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder,
|
|
380
|
+
initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithDate, WithTime, WithUtcOffset]);
|
|
381
381
|
initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
|
|
382
382
|
initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
|
|
383
383
|
initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
|
package/Logic_Debertz-core.js
CHANGED
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
|
|
377
377
|
//endregion
|
|
378
378
|
function GameEngineConfig() {
|
|
379
|
-
this.version = '1.8.
|
|
379
|
+
this.version = '1.8.327';
|
|
380
380
|
}
|
|
381
381
|
protoOf(GameEngineConfig).s2z = function () {
|
|
382
382
|
return this.version;
|
package/Logic_Debertz-engine.js
CHANGED
|
@@ -55516,7 +55516,7 @@
|
|
|
55516
55516
|
}
|
|
55517
55517
|
function GameHelper() {
|
|
55518
55518
|
}
|
|
55519
|
-
function
|
|
55519
|
+
function prepareLobbyFilterInternal($this, map) {
|
|
55520
55520
|
var jsObject = {};
|
|
55521
55521
|
var tmp = map.k2('players');
|
|
55522
55522
|
var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
|
|
@@ -55533,7 +55533,7 @@
|
|
|
55533
55533
|
while (inductionVariable < last) {
|
|
55534
55534
|
var element = tmp0_safe_receiver[inductionVariable];
|
|
55535
55535
|
inductionVariable = inductionVariable + 1 | 0;
|
|
55536
|
-
// Inline function 'GameHelperImpl.
|
|
55536
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
55537
55537
|
validatePlayers($this, element);
|
|
55538
55538
|
}
|
|
55539
55539
|
tmp_0 = tmp0_safe_receiver;
|
|
@@ -55546,7 +55546,7 @@
|
|
|
55546
55546
|
// Inline function 'kotlin.takeIf' call
|
|
55547
55547
|
// Inline function 'kotlin.contracts.contract' call
|
|
55548
55548
|
var tmp_2;
|
|
55549
|
-
// Inline function 'GameHelperImpl.
|
|
55549
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
55550
55550
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55551
55551
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
55552
55552
|
if (!(tmp1_safe_receiver.length === 0)) {
|
|
@@ -55572,7 +55572,7 @@
|
|
|
55572
55572
|
while (inductionVariable_0 < last_0) {
|
|
55573
55573
|
var element_0 = tmp2_safe_receiver[inductionVariable_0];
|
|
55574
55574
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
55575
|
-
// Inline function 'GameHelperImpl.
|
|
55575
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
55576
55576
|
validatePoints($this, element_0);
|
|
55577
55577
|
}
|
|
55578
55578
|
tmp_4 = tmp2_safe_receiver;
|
|
@@ -55585,7 +55585,7 @@
|
|
|
55585
55585
|
// Inline function 'kotlin.takeIf' call
|
|
55586
55586
|
// Inline function 'kotlin.contracts.contract' call
|
|
55587
55587
|
var tmp_6;
|
|
55588
|
-
// Inline function 'GameHelperImpl.
|
|
55588
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
55589
55589
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55590
55590
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
55591
55591
|
if (!(tmp3_safe_receiver.length === 0)) {
|
|
@@ -55611,7 +55611,7 @@
|
|
|
55611
55611
|
while (inductionVariable_1 < last_1) {
|
|
55612
55612
|
var element_1 = tmp4_safe_receiver[inductionVariable_1];
|
|
55613
55613
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
55614
|
-
// Inline function 'GameHelperImpl.
|
|
55614
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
55615
55615
|
validateTimeoutTime($this, element_1);
|
|
55616
55616
|
}
|
|
55617
55617
|
tmp_8 = tmp4_safe_receiver;
|
|
@@ -55624,7 +55624,7 @@
|
|
|
55624
55624
|
// Inline function 'kotlin.takeIf' call
|
|
55625
55625
|
// Inline function 'kotlin.contracts.contract' call
|
|
55626
55626
|
var tmp_10;
|
|
55627
|
-
// Inline function 'GameHelperImpl.
|
|
55627
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
55628
55628
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55629
55629
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
55630
55630
|
if (!(tmp5_safe_receiver.length === 0)) {
|
|
@@ -55650,7 +55650,7 @@
|
|
|
55650
55650
|
while (inductionVariable_2 < last_2) {
|
|
55651
55651
|
var element_2 = tmp6_safe_receiver[inductionVariable_2];
|
|
55652
55652
|
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
55653
|
-
// Inline function 'GameHelperImpl.
|
|
55653
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
55654
55654
|
validateLeague($this, element_2);
|
|
55655
55655
|
}
|
|
55656
55656
|
tmp_12 = tmp6_safe_receiver;
|
|
@@ -55663,7 +55663,7 @@
|
|
|
55663
55663
|
// Inline function 'kotlin.takeIf' call
|
|
55664
55664
|
// Inline function 'kotlin.contracts.contract' call
|
|
55665
55665
|
var tmp_14;
|
|
55666
|
-
// Inline function 'GameHelperImpl.
|
|
55666
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
55667
55667
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55668
55668
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
55669
55669
|
if (!(tmp7_safe_receiver.length === 0)) {
|
|
@@ -55689,7 +55689,7 @@
|
|
|
55689
55689
|
while (inductionVariable_3 < last_3) {
|
|
55690
55690
|
var element_3 = tmp8_safe_receiver[inductionVariable_3];
|
|
55691
55691
|
inductionVariable_3 = inductionVariable_3 + 1 | 0;
|
|
55692
|
-
// Inline function 'GameHelperImpl.
|
|
55692
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
55693
55693
|
validateRulesSetType($this, element_3);
|
|
55694
55694
|
}
|
|
55695
55695
|
tmp_16 = tmp8_safe_receiver;
|
|
@@ -55702,7 +55702,7 @@
|
|
|
55702
55702
|
// Inline function 'kotlin.takeIf' call
|
|
55703
55703
|
// Inline function 'kotlin.contracts.contract' call
|
|
55704
55704
|
var tmp_18;
|
|
55705
|
-
// Inline function 'GameHelperImpl.
|
|
55705
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
55706
55706
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55707
55707
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
55708
55708
|
if (!(tmp9_safe_receiver.length === 0)) {
|
|
@@ -55755,7 +55755,7 @@
|
|
|
55755
55755
|
var tmp0_iterator = this_0.j();
|
|
55756
55756
|
while (tmp0_iterator.k()) {
|
|
55757
55757
|
var item = tmp0_iterator.l();
|
|
55758
|
-
// Inline function 'GameHelperImpl.
|
|
55758
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
55759
55759
|
var tmp$ret$39 = item.q2_1;
|
|
55760
55760
|
destination.e(tmp$ret$39);
|
|
55761
55761
|
}
|
|
@@ -55774,7 +55774,7 @@
|
|
|
55774
55774
|
var tmp0_iterator_0 = this_1.j();
|
|
55775
55775
|
while (tmp0_iterator_0.k()) {
|
|
55776
55776
|
var item_0 = tmp0_iterator_0.l();
|
|
55777
|
-
// Inline function 'GameHelperImpl.
|
|
55777
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
55778
55778
|
// Inline function 'kotlin.text.lowercase' call
|
|
55779
55779
|
// Inline function 'kotlin.js.asDynamic' call
|
|
55780
55780
|
var tmp$ret$45 = item_0.q2_1.toLowerCase();
|
|
@@ -56051,7 +56051,11 @@
|
|
|
56051
56051
|
var tmp$ret$0 = item.q2_1;
|
|
56052
56052
|
destination.e(tmp$ret$0);
|
|
56053
56053
|
}
|
|
56054
|
-
|
|
56054
|
+
var tmp = destination;
|
|
56055
|
+
// Inline function 'kotlin.text.uppercase' call
|
|
56056
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
56057
|
+
var tmp$ret$4 = league.toUpperCase();
|
|
56058
|
+
if (!tmp.v1(tmp$ret$4)) {
|
|
56055
56059
|
throw IllegalStateException_init_$Create$('Not valid league ' + league);
|
|
56056
56060
|
}
|
|
56057
56061
|
}
|
|
@@ -56380,7 +56384,7 @@
|
|
|
56380
56384
|
protoOf(GameHelperImpl).mapRules = function (rules) {
|
|
56381
56385
|
return mapRulesObject(this, rules);
|
|
56382
56386
|
};
|
|
56383
|
-
protoOf(GameHelperImpl).
|
|
56387
|
+
protoOf(GameHelperImpl).prepareLobbyConfigWithPagination = function (config) {
|
|
56384
56388
|
var map = mapOfObject(config);
|
|
56385
56389
|
var tmp = map.k2('limit');
|
|
56386
56390
|
var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
|
|
@@ -56390,18 +56394,245 @@
|
|
|
56390
56394
|
} else {
|
|
56391
56395
|
// Inline function 'kotlin.also' call
|
|
56392
56396
|
// Inline function 'kotlin.contracts.contract' call
|
|
56393
|
-
// Inline function 'GameHelperImpl.
|
|
56397
|
+
// Inline function 'GameHelperImpl.prepareLobbyConfigWithPagination.<anonymous>' call
|
|
56394
56398
|
validateLimit(this, tmp0_safe_receiver);
|
|
56395
56399
|
tmp_0 = tmp0_safe_receiver;
|
|
56396
56400
|
}
|
|
56397
56401
|
var limit = tmp_0;
|
|
56398
|
-
var jsObject =
|
|
56402
|
+
var jsObject = prepareLobbyFilterInternal(this, map);
|
|
56399
56403
|
jsObject['limit'] = limit == null ? 20 : limit;
|
|
56400
56404
|
return jsObject;
|
|
56401
56405
|
};
|
|
56402
|
-
protoOf(GameHelperImpl).
|
|
56406
|
+
protoOf(GameHelperImpl).prepareLobbyConfig = function (config) {
|
|
56403
56407
|
var map = mapOfObject(config);
|
|
56404
|
-
return
|
|
56408
|
+
return prepareLobbyFilterInternal(this, map);
|
|
56409
|
+
};
|
|
56410
|
+
protoOf(GameHelperImpl).prepareLeagueConfig = function (config) {
|
|
56411
|
+
var map = mapOfObject(config);
|
|
56412
|
+
var jsObject = {};
|
|
56413
|
+
var tmp = map.k2('players');
|
|
56414
|
+
var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
|
|
56415
|
+
var tmp_0;
|
|
56416
|
+
if (tmp0_safe_receiver == null) {
|
|
56417
|
+
tmp_0 = null;
|
|
56418
|
+
} else {
|
|
56419
|
+
// Inline function 'kotlin.collections.onEach' call
|
|
56420
|
+
// Inline function 'kotlin.apply' call
|
|
56421
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
56422
|
+
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
56423
|
+
var inductionVariable = 0;
|
|
56424
|
+
var last = tmp0_safe_receiver.length;
|
|
56425
|
+
while (inductionVariable < last) {
|
|
56426
|
+
var element = tmp0_safe_receiver[inductionVariable];
|
|
56427
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
56428
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
56429
|
+
validatePlayers(this, element);
|
|
56430
|
+
}
|
|
56431
|
+
tmp_0 = tmp0_safe_receiver;
|
|
56432
|
+
}
|
|
56433
|
+
var tmp1_safe_receiver = tmp_0;
|
|
56434
|
+
var tmp_1;
|
|
56435
|
+
if (tmp1_safe_receiver == null) {
|
|
56436
|
+
tmp_1 = null;
|
|
56437
|
+
} else {
|
|
56438
|
+
// Inline function 'kotlin.takeIf' call
|
|
56439
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
56440
|
+
var tmp_2;
|
|
56441
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
56442
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
56443
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
56444
|
+
if (!(tmp1_safe_receiver.length === 0)) {
|
|
56445
|
+
tmp_2 = tmp1_safe_receiver;
|
|
56446
|
+
} else {
|
|
56447
|
+
tmp_2 = null;
|
|
56448
|
+
}
|
|
56449
|
+
tmp_1 = tmp_2;
|
|
56450
|
+
}
|
|
56451
|
+
var players = tmp_1;
|
|
56452
|
+
var tmp_3 = map.k2('points');
|
|
56453
|
+
var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
|
|
56454
|
+
var tmp_4;
|
|
56455
|
+
if (tmp2_safe_receiver == null) {
|
|
56456
|
+
tmp_4 = null;
|
|
56457
|
+
} else {
|
|
56458
|
+
// Inline function 'kotlin.collections.onEach' call
|
|
56459
|
+
// Inline function 'kotlin.apply' call
|
|
56460
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
56461
|
+
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
56462
|
+
var inductionVariable_0 = 0;
|
|
56463
|
+
var last_0 = tmp2_safe_receiver.length;
|
|
56464
|
+
while (inductionVariable_0 < last_0) {
|
|
56465
|
+
var element_0 = tmp2_safe_receiver[inductionVariable_0];
|
|
56466
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
56467
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
56468
|
+
validatePoints(this, element_0);
|
|
56469
|
+
}
|
|
56470
|
+
tmp_4 = tmp2_safe_receiver;
|
|
56471
|
+
}
|
|
56472
|
+
var tmp3_safe_receiver = tmp_4;
|
|
56473
|
+
var tmp_5;
|
|
56474
|
+
if (tmp3_safe_receiver == null) {
|
|
56475
|
+
tmp_5 = null;
|
|
56476
|
+
} else {
|
|
56477
|
+
// Inline function 'kotlin.takeIf' call
|
|
56478
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
56479
|
+
var tmp_6;
|
|
56480
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
56481
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
56482
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
56483
|
+
if (!(tmp3_safe_receiver.length === 0)) {
|
|
56484
|
+
tmp_6 = tmp3_safe_receiver;
|
|
56485
|
+
} else {
|
|
56486
|
+
tmp_6 = null;
|
|
56487
|
+
}
|
|
56488
|
+
tmp_5 = tmp_6;
|
|
56489
|
+
}
|
|
56490
|
+
var points = tmp_5;
|
|
56491
|
+
var tmp_7 = map.k2('timeoutTime');
|
|
56492
|
+
var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
|
|
56493
|
+
var tmp_8;
|
|
56494
|
+
if (tmp4_safe_receiver == null) {
|
|
56495
|
+
tmp_8 = null;
|
|
56496
|
+
} else {
|
|
56497
|
+
// Inline function 'kotlin.collections.onEach' call
|
|
56498
|
+
// Inline function 'kotlin.apply' call
|
|
56499
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
56500
|
+
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
56501
|
+
var inductionVariable_1 = 0;
|
|
56502
|
+
var last_1 = tmp4_safe_receiver.length;
|
|
56503
|
+
while (inductionVariable_1 < last_1) {
|
|
56504
|
+
var element_1 = tmp4_safe_receiver[inductionVariable_1];
|
|
56505
|
+
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
56506
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
56507
|
+
validateTimeoutTime(this, element_1);
|
|
56508
|
+
}
|
|
56509
|
+
tmp_8 = tmp4_safe_receiver;
|
|
56510
|
+
}
|
|
56511
|
+
var tmp5_safe_receiver = tmp_8;
|
|
56512
|
+
var tmp_9;
|
|
56513
|
+
if (tmp5_safe_receiver == null) {
|
|
56514
|
+
tmp_9 = null;
|
|
56515
|
+
} else {
|
|
56516
|
+
// Inline function 'kotlin.takeIf' call
|
|
56517
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
56518
|
+
var tmp_10;
|
|
56519
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
56520
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
56521
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
56522
|
+
if (!(tmp5_safe_receiver.length === 0)) {
|
|
56523
|
+
tmp_10 = tmp5_safe_receiver;
|
|
56524
|
+
} else {
|
|
56525
|
+
tmp_10 = null;
|
|
56526
|
+
}
|
|
56527
|
+
tmp_9 = tmp_10;
|
|
56528
|
+
}
|
|
56529
|
+
var timeoutTime = tmp_9;
|
|
56530
|
+
var tmp_11 = map.k2('league');
|
|
56531
|
+
var tmp6_safe_receiver = (!(tmp_11 == null) ? typeof tmp_11 === 'string' : false) ? tmp_11 : null;
|
|
56532
|
+
var tmp_12;
|
|
56533
|
+
if (tmp6_safe_receiver == null) {
|
|
56534
|
+
tmp_12 = null;
|
|
56535
|
+
} else {
|
|
56536
|
+
// Inline function 'kotlin.apply' call
|
|
56537
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
56538
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
56539
|
+
validateLeague(this, tmp6_safe_receiver);
|
|
56540
|
+
tmp_12 = tmp6_safe_receiver;
|
|
56541
|
+
}
|
|
56542
|
+
var league = tmp_12;
|
|
56543
|
+
var tmp_13 = map.k2('rulesPreset');
|
|
56544
|
+
var tmp7_safe_receiver = (tmp_13 == null ? true : isArray(tmp_13)) ? tmp_13 : null;
|
|
56545
|
+
var tmp_14;
|
|
56546
|
+
if (tmp7_safe_receiver == null) {
|
|
56547
|
+
tmp_14 = null;
|
|
56548
|
+
} else {
|
|
56549
|
+
// Inline function 'kotlin.collections.onEach' call
|
|
56550
|
+
// Inline function 'kotlin.apply' call
|
|
56551
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
56552
|
+
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
56553
|
+
var inductionVariable_2 = 0;
|
|
56554
|
+
var last_2 = tmp7_safe_receiver.length;
|
|
56555
|
+
while (inductionVariable_2 < last_2) {
|
|
56556
|
+
var element_2 = tmp7_safe_receiver[inductionVariable_2];
|
|
56557
|
+
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
56558
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
56559
|
+
validateRulesSetType(this, element_2);
|
|
56560
|
+
}
|
|
56561
|
+
tmp_14 = tmp7_safe_receiver;
|
|
56562
|
+
}
|
|
56563
|
+
var tmp8_safe_receiver = tmp_14;
|
|
56564
|
+
var tmp_15;
|
|
56565
|
+
if (tmp8_safe_receiver == null) {
|
|
56566
|
+
tmp_15 = null;
|
|
56567
|
+
} else {
|
|
56568
|
+
// Inline function 'kotlin.takeIf' call
|
|
56569
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
56570
|
+
var tmp_16;
|
|
56571
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
56572
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
56573
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
56574
|
+
if (!(tmp8_safe_receiver.length === 0)) {
|
|
56575
|
+
tmp_16 = tmp8_safe_receiver;
|
|
56576
|
+
} else {
|
|
56577
|
+
tmp_16 = null;
|
|
56578
|
+
}
|
|
56579
|
+
tmp_15 = tmp_16;
|
|
56580
|
+
}
|
|
56581
|
+
var rulesPreset = tmp_15;
|
|
56582
|
+
var tmp_17 = map.k2('isChatEnabled');
|
|
56583
|
+
var isChatEnabled = (!(tmp_17 == null) ? typeof tmp_17 === 'boolean' : false) ? tmp_17 : null;
|
|
56584
|
+
var tmp_18;
|
|
56585
|
+
if (players == null) {
|
|
56586
|
+
// Inline function 'kotlin.arrayOf' call
|
|
56587
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
56588
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
56589
|
+
tmp_18 = [2, 3, 4, 5];
|
|
56590
|
+
} else {
|
|
56591
|
+
tmp_18 = players;
|
|
56592
|
+
}
|
|
56593
|
+
jsObject['players'] = tmp_18;
|
|
56594
|
+
var tmp_19;
|
|
56595
|
+
if (points == null) {
|
|
56596
|
+
// Inline function 'kotlin.arrayOf' call
|
|
56597
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
56598
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
56599
|
+
tmp_19 = [301, 501, 1001];
|
|
56600
|
+
} else {
|
|
56601
|
+
tmp_19 = points;
|
|
56602
|
+
}
|
|
56603
|
+
jsObject['points'] = tmp_19;
|
|
56604
|
+
var tmp_20;
|
|
56605
|
+
if (timeoutTime == null) {
|
|
56606
|
+
// Inline function 'kotlin.arrayOf' call
|
|
56607
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
56608
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
56609
|
+
tmp_20 = [15, 30, 45];
|
|
56610
|
+
} else {
|
|
56611
|
+
tmp_20 = timeoutTime;
|
|
56612
|
+
}
|
|
56613
|
+
jsObject['timeoutTime'] = tmp_20;
|
|
56614
|
+
var tmp_21;
|
|
56615
|
+
if (rulesPreset == null) {
|
|
56616
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
56617
|
+
// Inline function 'kotlin.collections.map' call
|
|
56618
|
+
var this_0 = get_entries_3();
|
|
56619
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
56620
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
56621
|
+
var tmp0_iterator = this_0.j();
|
|
56622
|
+
while (tmp0_iterator.k()) {
|
|
56623
|
+
var item = tmp0_iterator.l();
|
|
56624
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
56625
|
+
var tmp$ret$34 = item.q2_1;
|
|
56626
|
+
destination.e(tmp$ret$34);
|
|
56627
|
+
}
|
|
56628
|
+
tmp_21 = copyToArray(destination);
|
|
56629
|
+
} else {
|
|
56630
|
+
tmp_21 = rulesPreset;
|
|
56631
|
+
}
|
|
56632
|
+
jsObject['rulesPreset'] = tmp_21;
|
|
56633
|
+
jsObject['league'] = league;
|
|
56634
|
+
jsObject['isChatEnabled'] = isChatEnabled;
|
|
56635
|
+
return jsObject;
|
|
56405
56636
|
};
|
|
56406
56637
|
protoOf(GameHelperImpl).isValidConfigObject = function (config) {
|
|
56407
56638
|
var map = mapOfObject(config);
|
|
@@ -56480,6 +56711,22 @@
|
|
|
56480
56711
|
var tmp$ret$1 = name.toUpperCase();
|
|
56481
56712
|
return valueOf_0(tmp$ret$1);
|
|
56482
56713
|
};
|
|
56714
|
+
protoOf(GameHelperImpl).getAllLeagues = function () {
|
|
56715
|
+
// Inline function 'kotlin.collections.map' call
|
|
56716
|
+
var this_0 = get_entries_0();
|
|
56717
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
56718
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
56719
|
+
var tmp0_iterator = this_0.j();
|
|
56720
|
+
while (tmp0_iterator.k()) {
|
|
56721
|
+
var item = tmp0_iterator.l();
|
|
56722
|
+
// Inline function 'GameHelperImpl.getAllLeagues.<anonymous>' call
|
|
56723
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
56724
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
56725
|
+
var tmp$ret$2 = item.q2_1.toLowerCase();
|
|
56726
|
+
destination.e(tmp$ret$2);
|
|
56727
|
+
}
|
|
56728
|
+
return destination;
|
|
56729
|
+
};
|
|
56483
56730
|
function GameResources() {
|
|
56484
56731
|
}
|
|
56485
56732
|
var AvatarSet_ORIGIN_instance;
|
|
@@ -56828,12 +57075,6 @@
|
|
|
56828
57075
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
56829
57076
|
return this.v9h_1.z8s();
|
|
56830
57077
|
};
|
|
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
|
-
};
|
|
56837
57078
|
function engineHelpersModule() {
|
|
56838
57079
|
return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
|
|
56839
57080
|
}
|