game_client_logic_deb 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.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2 -2
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +266 -25
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +4 -3
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
function addFormatStructureForTime(structure) {
|
|
325
325
|
this.y58(structure);
|
|
326
326
|
}
|
|
327
|
-
initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder,
|
|
327
|
+
initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
|
|
328
328
|
function offsetHours$default(padding, $super) {
|
|
329
329
|
padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
|
|
330
330
|
var tmp;
|
|
@@ -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, WithTime, WithUtcOffset, WithDate]);
|
|
381
381
|
initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
|
|
382
382
|
initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
|
|
383
383
|
initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
|
package/Logic_Debertz-core.js
CHANGED
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
|
|
381
381
|
//endregion
|
|
382
382
|
function GameEngineConfig() {
|
|
383
|
-
this.version = '1.8.
|
|
383
|
+
this.version = '1.8.327';
|
|
384
384
|
}
|
|
385
385
|
protoOf(GameEngineConfig).o2y = function () {
|
|
386
386
|
return this.version;
|
package/Logic_Debertz-engine.js
CHANGED
|
@@ -54049,7 +54049,7 @@
|
|
|
54049
54049
|
}
|
|
54050
54050
|
function GameHelper() {
|
|
54051
54051
|
}
|
|
54052
|
-
function
|
|
54052
|
+
function prepareLobbyFilterInternal($this, map) {
|
|
54053
54053
|
var jsObject = {};
|
|
54054
54054
|
var tmp = map.k2('players');
|
|
54055
54055
|
var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
|
|
@@ -54066,7 +54066,7 @@
|
|
|
54066
54066
|
while (inductionVariable < last) {
|
|
54067
54067
|
var element = tmp0_safe_receiver[inductionVariable];
|
|
54068
54068
|
inductionVariable = inductionVariable + 1 | 0;
|
|
54069
|
-
// Inline function 'GameHelperImpl.
|
|
54069
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
54070
54070
|
validatePlayers($this, element);
|
|
54071
54071
|
}
|
|
54072
54072
|
tmp_0 = tmp0_safe_receiver;
|
|
@@ -54079,7 +54079,7 @@
|
|
|
54079
54079
|
// Inline function 'kotlin.takeIf' call
|
|
54080
54080
|
// Inline function 'kotlin.contracts.contract' call
|
|
54081
54081
|
var tmp_2;
|
|
54082
|
-
// Inline function 'GameHelperImpl.
|
|
54082
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
54083
54083
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
54084
54084
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
54085
54085
|
if (!(tmp1_safe_receiver.length === 0)) {
|
|
@@ -54105,7 +54105,7 @@
|
|
|
54105
54105
|
while (inductionVariable_0 < last_0) {
|
|
54106
54106
|
var element_0 = tmp2_safe_receiver[inductionVariable_0];
|
|
54107
54107
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
54108
|
-
// Inline function 'GameHelperImpl.
|
|
54108
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
54109
54109
|
validatePoints($this, element_0);
|
|
54110
54110
|
}
|
|
54111
54111
|
tmp_4 = tmp2_safe_receiver;
|
|
@@ -54118,7 +54118,7 @@
|
|
|
54118
54118
|
// Inline function 'kotlin.takeIf' call
|
|
54119
54119
|
// Inline function 'kotlin.contracts.contract' call
|
|
54120
54120
|
var tmp_6;
|
|
54121
|
-
// Inline function 'GameHelperImpl.
|
|
54121
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
54122
54122
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
54123
54123
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
54124
54124
|
if (!(tmp3_safe_receiver.length === 0)) {
|
|
@@ -54144,7 +54144,7 @@
|
|
|
54144
54144
|
while (inductionVariable_1 < last_1) {
|
|
54145
54145
|
var element_1 = tmp4_safe_receiver[inductionVariable_1];
|
|
54146
54146
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
54147
|
-
// Inline function 'GameHelperImpl.
|
|
54147
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
54148
54148
|
validateTimeoutTime($this, element_1);
|
|
54149
54149
|
}
|
|
54150
54150
|
tmp_8 = tmp4_safe_receiver;
|
|
@@ -54157,7 +54157,7 @@
|
|
|
54157
54157
|
// Inline function 'kotlin.takeIf' call
|
|
54158
54158
|
// Inline function 'kotlin.contracts.contract' call
|
|
54159
54159
|
var tmp_10;
|
|
54160
|
-
// Inline function 'GameHelperImpl.
|
|
54160
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
54161
54161
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
54162
54162
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
54163
54163
|
if (!(tmp5_safe_receiver.length === 0)) {
|
|
@@ -54183,7 +54183,7 @@
|
|
|
54183
54183
|
while (inductionVariable_2 < last_2) {
|
|
54184
54184
|
var element_2 = tmp6_safe_receiver[inductionVariable_2];
|
|
54185
54185
|
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
54186
|
-
// Inline function 'GameHelperImpl.
|
|
54186
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
54187
54187
|
validateLeague($this, element_2);
|
|
54188
54188
|
}
|
|
54189
54189
|
tmp_12 = tmp6_safe_receiver;
|
|
@@ -54196,7 +54196,7 @@
|
|
|
54196
54196
|
// Inline function 'kotlin.takeIf' call
|
|
54197
54197
|
// Inline function 'kotlin.contracts.contract' call
|
|
54198
54198
|
var tmp_14;
|
|
54199
|
-
// Inline function 'GameHelperImpl.
|
|
54199
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
54200
54200
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
54201
54201
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
54202
54202
|
if (!(tmp7_safe_receiver.length === 0)) {
|
|
@@ -54222,7 +54222,7 @@
|
|
|
54222
54222
|
while (inductionVariable_3 < last_3) {
|
|
54223
54223
|
var element_3 = tmp8_safe_receiver[inductionVariable_3];
|
|
54224
54224
|
inductionVariable_3 = inductionVariable_3 + 1 | 0;
|
|
54225
|
-
// Inline function 'GameHelperImpl.
|
|
54225
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
54226
54226
|
validateRulesSetType($this, element_3);
|
|
54227
54227
|
}
|
|
54228
54228
|
tmp_16 = tmp8_safe_receiver;
|
|
@@ -54235,7 +54235,7 @@
|
|
|
54235
54235
|
// Inline function 'kotlin.takeIf' call
|
|
54236
54236
|
// Inline function 'kotlin.contracts.contract' call
|
|
54237
54237
|
var tmp_18;
|
|
54238
|
-
// Inline function 'GameHelperImpl.
|
|
54238
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
54239
54239
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
54240
54240
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
54241
54241
|
if (!(tmp9_safe_receiver.length === 0)) {
|
|
@@ -54288,7 +54288,7 @@
|
|
|
54288
54288
|
var tmp0_iterator = this_0.j();
|
|
54289
54289
|
while (tmp0_iterator.k()) {
|
|
54290
54290
|
var item = tmp0_iterator.l();
|
|
54291
|
-
// Inline function 'GameHelperImpl.
|
|
54291
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
54292
54292
|
var tmp$ret$39 = item.q2_1;
|
|
54293
54293
|
destination.e(tmp$ret$39);
|
|
54294
54294
|
}
|
|
@@ -54307,7 +54307,7 @@
|
|
|
54307
54307
|
var tmp0_iterator_0 = this_1.j();
|
|
54308
54308
|
while (tmp0_iterator_0.k()) {
|
|
54309
54309
|
var item_0 = tmp0_iterator_0.l();
|
|
54310
|
-
// Inline function 'GameHelperImpl.
|
|
54310
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
54311
54311
|
// Inline function 'kotlin.text.lowercase' call
|
|
54312
54312
|
// Inline function 'kotlin.js.asDynamic' call
|
|
54313
54313
|
var tmp$ret$45 = item_0.q2_1.toLowerCase();
|
|
@@ -54584,7 +54584,11 @@
|
|
|
54584
54584
|
var tmp$ret$0 = item.q2_1;
|
|
54585
54585
|
destination.e(tmp$ret$0);
|
|
54586
54586
|
}
|
|
54587
|
-
|
|
54587
|
+
var tmp = destination;
|
|
54588
|
+
// Inline function 'kotlin.text.uppercase' call
|
|
54589
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
54590
|
+
var tmp$ret$4 = league.toUpperCase();
|
|
54591
|
+
if (!tmp.v1(tmp$ret$4)) {
|
|
54588
54592
|
throw IllegalStateException_init_$Create$('Not valid league ' + league);
|
|
54589
54593
|
}
|
|
54590
54594
|
}
|
|
@@ -54913,7 +54917,7 @@
|
|
|
54913
54917
|
protoOf(GameHelperImpl).mapRules = function (rules) {
|
|
54914
54918
|
return mapRulesObject(this, rules);
|
|
54915
54919
|
};
|
|
54916
|
-
protoOf(GameHelperImpl).
|
|
54920
|
+
protoOf(GameHelperImpl).prepareLobbyConfigWithPagination = function (config) {
|
|
54917
54921
|
var map = mapOfObject(config);
|
|
54918
54922
|
var tmp = map.k2('limit');
|
|
54919
54923
|
var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
|
|
@@ -54923,18 +54927,245 @@
|
|
|
54923
54927
|
} else {
|
|
54924
54928
|
// Inline function 'kotlin.also' call
|
|
54925
54929
|
// Inline function 'kotlin.contracts.contract' call
|
|
54926
|
-
// Inline function 'GameHelperImpl.
|
|
54930
|
+
// Inline function 'GameHelperImpl.prepareLobbyConfigWithPagination.<anonymous>' call
|
|
54927
54931
|
validateLimit(this, tmp0_safe_receiver);
|
|
54928
54932
|
tmp_0 = tmp0_safe_receiver;
|
|
54929
54933
|
}
|
|
54930
54934
|
var limit = tmp_0;
|
|
54931
|
-
var jsObject =
|
|
54935
|
+
var jsObject = prepareLobbyFilterInternal(this, map);
|
|
54932
54936
|
jsObject['limit'] = limit == null ? 20 : limit;
|
|
54933
54937
|
return jsObject;
|
|
54934
54938
|
};
|
|
54935
|
-
protoOf(GameHelperImpl).
|
|
54939
|
+
protoOf(GameHelperImpl).prepareLobbyConfig = function (config) {
|
|
54936
54940
|
var map = mapOfObject(config);
|
|
54937
|
-
return
|
|
54941
|
+
return prepareLobbyFilterInternal(this, map);
|
|
54942
|
+
};
|
|
54943
|
+
protoOf(GameHelperImpl).prepareLeagueConfig = function (config) {
|
|
54944
|
+
var map = mapOfObject(config);
|
|
54945
|
+
var jsObject = {};
|
|
54946
|
+
var tmp = map.k2('players');
|
|
54947
|
+
var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
|
|
54948
|
+
var tmp_0;
|
|
54949
|
+
if (tmp0_safe_receiver == null) {
|
|
54950
|
+
tmp_0 = null;
|
|
54951
|
+
} else {
|
|
54952
|
+
// Inline function 'kotlin.collections.onEach' call
|
|
54953
|
+
// Inline function 'kotlin.apply' call
|
|
54954
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
54955
|
+
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
54956
|
+
var inductionVariable = 0;
|
|
54957
|
+
var last = tmp0_safe_receiver.length;
|
|
54958
|
+
while (inductionVariable < last) {
|
|
54959
|
+
var element = tmp0_safe_receiver[inductionVariable];
|
|
54960
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
54961
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
54962
|
+
validatePlayers(this, element);
|
|
54963
|
+
}
|
|
54964
|
+
tmp_0 = tmp0_safe_receiver;
|
|
54965
|
+
}
|
|
54966
|
+
var tmp1_safe_receiver = tmp_0;
|
|
54967
|
+
var tmp_1;
|
|
54968
|
+
if (tmp1_safe_receiver == null) {
|
|
54969
|
+
tmp_1 = null;
|
|
54970
|
+
} else {
|
|
54971
|
+
// Inline function 'kotlin.takeIf' call
|
|
54972
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
54973
|
+
var tmp_2;
|
|
54974
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
54975
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
54976
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
54977
|
+
if (!(tmp1_safe_receiver.length === 0)) {
|
|
54978
|
+
tmp_2 = tmp1_safe_receiver;
|
|
54979
|
+
} else {
|
|
54980
|
+
tmp_2 = null;
|
|
54981
|
+
}
|
|
54982
|
+
tmp_1 = tmp_2;
|
|
54983
|
+
}
|
|
54984
|
+
var players = tmp_1;
|
|
54985
|
+
var tmp_3 = map.k2('points');
|
|
54986
|
+
var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
|
|
54987
|
+
var tmp_4;
|
|
54988
|
+
if (tmp2_safe_receiver == null) {
|
|
54989
|
+
tmp_4 = null;
|
|
54990
|
+
} else {
|
|
54991
|
+
// Inline function 'kotlin.collections.onEach' call
|
|
54992
|
+
// Inline function 'kotlin.apply' call
|
|
54993
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
54994
|
+
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
54995
|
+
var inductionVariable_0 = 0;
|
|
54996
|
+
var last_0 = tmp2_safe_receiver.length;
|
|
54997
|
+
while (inductionVariable_0 < last_0) {
|
|
54998
|
+
var element_0 = tmp2_safe_receiver[inductionVariable_0];
|
|
54999
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
55000
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
55001
|
+
validatePoints(this, element_0);
|
|
55002
|
+
}
|
|
55003
|
+
tmp_4 = tmp2_safe_receiver;
|
|
55004
|
+
}
|
|
55005
|
+
var tmp3_safe_receiver = tmp_4;
|
|
55006
|
+
var tmp_5;
|
|
55007
|
+
if (tmp3_safe_receiver == null) {
|
|
55008
|
+
tmp_5 = null;
|
|
55009
|
+
} else {
|
|
55010
|
+
// Inline function 'kotlin.takeIf' call
|
|
55011
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
55012
|
+
var tmp_6;
|
|
55013
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
55014
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55015
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
55016
|
+
if (!(tmp3_safe_receiver.length === 0)) {
|
|
55017
|
+
tmp_6 = tmp3_safe_receiver;
|
|
55018
|
+
} else {
|
|
55019
|
+
tmp_6 = null;
|
|
55020
|
+
}
|
|
55021
|
+
tmp_5 = tmp_6;
|
|
55022
|
+
}
|
|
55023
|
+
var points = tmp_5;
|
|
55024
|
+
var tmp_7 = map.k2('timeoutTime');
|
|
55025
|
+
var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
|
|
55026
|
+
var tmp_8;
|
|
55027
|
+
if (tmp4_safe_receiver == null) {
|
|
55028
|
+
tmp_8 = null;
|
|
55029
|
+
} else {
|
|
55030
|
+
// Inline function 'kotlin.collections.onEach' call
|
|
55031
|
+
// Inline function 'kotlin.apply' call
|
|
55032
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
55033
|
+
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
55034
|
+
var inductionVariable_1 = 0;
|
|
55035
|
+
var last_1 = tmp4_safe_receiver.length;
|
|
55036
|
+
while (inductionVariable_1 < last_1) {
|
|
55037
|
+
var element_1 = tmp4_safe_receiver[inductionVariable_1];
|
|
55038
|
+
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
55039
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
55040
|
+
validateTimeoutTime(this, element_1);
|
|
55041
|
+
}
|
|
55042
|
+
tmp_8 = tmp4_safe_receiver;
|
|
55043
|
+
}
|
|
55044
|
+
var tmp5_safe_receiver = tmp_8;
|
|
55045
|
+
var tmp_9;
|
|
55046
|
+
if (tmp5_safe_receiver == null) {
|
|
55047
|
+
tmp_9 = null;
|
|
55048
|
+
} else {
|
|
55049
|
+
// Inline function 'kotlin.takeIf' call
|
|
55050
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
55051
|
+
var tmp_10;
|
|
55052
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
55053
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55054
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
55055
|
+
if (!(tmp5_safe_receiver.length === 0)) {
|
|
55056
|
+
tmp_10 = tmp5_safe_receiver;
|
|
55057
|
+
} else {
|
|
55058
|
+
tmp_10 = null;
|
|
55059
|
+
}
|
|
55060
|
+
tmp_9 = tmp_10;
|
|
55061
|
+
}
|
|
55062
|
+
var timeoutTime = tmp_9;
|
|
55063
|
+
var tmp_11 = map.k2('league');
|
|
55064
|
+
var tmp6_safe_receiver = (!(tmp_11 == null) ? typeof tmp_11 === 'string' : false) ? tmp_11 : null;
|
|
55065
|
+
var tmp_12;
|
|
55066
|
+
if (tmp6_safe_receiver == null) {
|
|
55067
|
+
tmp_12 = null;
|
|
55068
|
+
} else {
|
|
55069
|
+
// Inline function 'kotlin.apply' call
|
|
55070
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
55071
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
55072
|
+
validateLeague(this, tmp6_safe_receiver);
|
|
55073
|
+
tmp_12 = tmp6_safe_receiver;
|
|
55074
|
+
}
|
|
55075
|
+
var league = tmp_12;
|
|
55076
|
+
var tmp_13 = map.k2('rulesPreset');
|
|
55077
|
+
var tmp7_safe_receiver = (tmp_13 == null ? true : isArray(tmp_13)) ? tmp_13 : null;
|
|
55078
|
+
var tmp_14;
|
|
55079
|
+
if (tmp7_safe_receiver == null) {
|
|
55080
|
+
tmp_14 = null;
|
|
55081
|
+
} else {
|
|
55082
|
+
// Inline function 'kotlin.collections.onEach' call
|
|
55083
|
+
// Inline function 'kotlin.apply' call
|
|
55084
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
55085
|
+
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
55086
|
+
var inductionVariable_2 = 0;
|
|
55087
|
+
var last_2 = tmp7_safe_receiver.length;
|
|
55088
|
+
while (inductionVariable_2 < last_2) {
|
|
55089
|
+
var element_2 = tmp7_safe_receiver[inductionVariable_2];
|
|
55090
|
+
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
55091
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
55092
|
+
validateRulesSetType(this, element_2);
|
|
55093
|
+
}
|
|
55094
|
+
tmp_14 = tmp7_safe_receiver;
|
|
55095
|
+
}
|
|
55096
|
+
var tmp8_safe_receiver = tmp_14;
|
|
55097
|
+
var tmp_15;
|
|
55098
|
+
if (tmp8_safe_receiver == null) {
|
|
55099
|
+
tmp_15 = null;
|
|
55100
|
+
} else {
|
|
55101
|
+
// Inline function 'kotlin.takeIf' call
|
|
55102
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
55103
|
+
var tmp_16;
|
|
55104
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
55105
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
55106
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
55107
|
+
if (!(tmp8_safe_receiver.length === 0)) {
|
|
55108
|
+
tmp_16 = tmp8_safe_receiver;
|
|
55109
|
+
} else {
|
|
55110
|
+
tmp_16 = null;
|
|
55111
|
+
}
|
|
55112
|
+
tmp_15 = tmp_16;
|
|
55113
|
+
}
|
|
55114
|
+
var rulesPreset = tmp_15;
|
|
55115
|
+
var tmp_17 = map.k2('isChatEnabled');
|
|
55116
|
+
var isChatEnabled = (!(tmp_17 == null) ? typeof tmp_17 === 'boolean' : false) ? tmp_17 : null;
|
|
55117
|
+
var tmp_18;
|
|
55118
|
+
if (players == null) {
|
|
55119
|
+
// Inline function 'kotlin.arrayOf' call
|
|
55120
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
55121
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
55122
|
+
tmp_18 = [2, 3, 4, 5];
|
|
55123
|
+
} else {
|
|
55124
|
+
tmp_18 = players;
|
|
55125
|
+
}
|
|
55126
|
+
jsObject['players'] = tmp_18;
|
|
55127
|
+
var tmp_19;
|
|
55128
|
+
if (points == null) {
|
|
55129
|
+
// Inline function 'kotlin.arrayOf' call
|
|
55130
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
55131
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
55132
|
+
tmp_19 = [301, 501, 1001];
|
|
55133
|
+
} else {
|
|
55134
|
+
tmp_19 = points;
|
|
55135
|
+
}
|
|
55136
|
+
jsObject['points'] = tmp_19;
|
|
55137
|
+
var tmp_20;
|
|
55138
|
+
if (timeoutTime == null) {
|
|
55139
|
+
// Inline function 'kotlin.arrayOf' call
|
|
55140
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
55141
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
55142
|
+
tmp_20 = [15, 30, 45];
|
|
55143
|
+
} else {
|
|
55144
|
+
tmp_20 = timeoutTime;
|
|
55145
|
+
}
|
|
55146
|
+
jsObject['timeoutTime'] = tmp_20;
|
|
55147
|
+
var tmp_21;
|
|
55148
|
+
if (rulesPreset == null) {
|
|
55149
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
55150
|
+
// Inline function 'kotlin.collections.map' call
|
|
55151
|
+
var this_0 = get_entries_3();
|
|
55152
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
55153
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
55154
|
+
var tmp0_iterator = this_0.j();
|
|
55155
|
+
while (tmp0_iterator.k()) {
|
|
55156
|
+
var item = tmp0_iterator.l();
|
|
55157
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
55158
|
+
var tmp$ret$34 = item.q2_1;
|
|
55159
|
+
destination.e(tmp$ret$34);
|
|
55160
|
+
}
|
|
55161
|
+
tmp_21 = copyToArray(destination);
|
|
55162
|
+
} else {
|
|
55163
|
+
tmp_21 = rulesPreset;
|
|
55164
|
+
}
|
|
55165
|
+
jsObject['rulesPreset'] = tmp_21;
|
|
55166
|
+
jsObject['league'] = league;
|
|
55167
|
+
jsObject['isChatEnabled'] = isChatEnabled;
|
|
55168
|
+
return jsObject;
|
|
54938
55169
|
};
|
|
54939
55170
|
protoOf(GameHelperImpl).isValidConfigObject = function (config) {
|
|
54940
55171
|
var map = mapOfObject(config);
|
|
@@ -55013,6 +55244,22 @@
|
|
|
55013
55244
|
var tmp$ret$1 = name.toUpperCase();
|
|
55014
55245
|
return valueOf_0(tmp$ret$1);
|
|
55015
55246
|
};
|
|
55247
|
+
protoOf(GameHelperImpl).getAllLeagues = function () {
|
|
55248
|
+
// Inline function 'kotlin.collections.map' call
|
|
55249
|
+
var this_0 = get_entries_0();
|
|
55250
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
55251
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
55252
|
+
var tmp0_iterator = this_0.j();
|
|
55253
|
+
while (tmp0_iterator.k()) {
|
|
55254
|
+
var item = tmp0_iterator.l();
|
|
55255
|
+
// Inline function 'GameHelperImpl.getAllLeagues.<anonymous>' call
|
|
55256
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
55257
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
55258
|
+
var tmp$ret$2 = item.q2_1.toLowerCase();
|
|
55259
|
+
destination.e(tmp$ret$2);
|
|
55260
|
+
}
|
|
55261
|
+
return destination;
|
|
55262
|
+
};
|
|
55016
55263
|
function GameResources() {
|
|
55017
55264
|
}
|
|
55018
55265
|
var AvatarSet_ORIGIN_instance;
|
|
@@ -55361,12 +55608,6 @@
|
|
|
55361
55608
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
55362
55609
|
return this.u9c_1.b8q();
|
|
55363
55610
|
};
|
|
55364
|
-
protoOf(RatingHelperImpl).mapToLeague = function (name) {
|
|
55365
|
-
// Inline function 'kotlin.text.uppercase' call
|
|
55366
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
55367
|
-
var tmp$ret$1 = name.toUpperCase();
|
|
55368
|
-
return valueOf_0(tmp$ret$1);
|
|
55369
|
-
};
|
|
55370
55611
|
function engineHelpersModule() {
|
|
55371
55612
|
return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
|
|
55372
55613
|
}
|