raspberry_games_engine_helpers 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 +1 -1
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.d.ts +4 -3
- package/Logic_Debertz-engine.js +266 -25
- package/Logic_Debertz-engine.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/package.json +1 -1
|
@@ -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, WithUtcOffset, WithDate, WithTime]);
|
|
381
381
|
initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
|
|
382
382
|
initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
|
|
383
383
|
initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
|
package/Logic_Debertz-core.js
CHANGED
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
initMetadataForClass(LoggerOutputDataDto, 'LoggerOutputDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_10});
|
|
216
216
|
//endregion
|
|
217
217
|
function GameEngineConfig() {
|
|
218
|
-
this.version = '1.8.
|
|
218
|
+
this.version = '1.8.327';
|
|
219
219
|
}
|
|
220
220
|
protoOf(GameEngineConfig).o25 = function () {
|
|
221
221
|
return this.version;
|
|
@@ -1963,13 +1963,15 @@ export declare interface GameHelper {
|
|
|
1963
1963
|
mapPoints(points: number): games.jass.logic.data.models.table.config.PointsMode;
|
|
1964
1964
|
mapPlayers(players: number): games.jass.logic.data.models.table.config.PlayersMode;
|
|
1965
1965
|
mapRules(rules: any): games.jass.logic.data.models.rules.Rules;
|
|
1966
|
-
|
|
1967
|
-
|
|
1966
|
+
prepareLobbyConfigWithPagination(config: any): any;
|
|
1967
|
+
prepareLobbyConfig(config: any): any;
|
|
1968
|
+
prepareLeagueConfig(config: any): any;
|
|
1968
1969
|
isValidConfigObject(config: any): boolean;
|
|
1969
1970
|
getRulesByType(rulesSetType: games.jass.logic.data.models.rules.RulesSetType): games.jass.logic.data.models.rules.Rules;
|
|
1970
1971
|
getRulesByString(name: string): games.jass.logic.data.models.rules.Rules;
|
|
1971
1972
|
mapRulesSetType(name: string): games.jass.logic.data.models.rules.RulesSetType;
|
|
1972
1973
|
mapToLeague(name: string): games.jass.logic.data.models.leagues.League;
|
|
1974
|
+
getAllLeagues(): kotlin.collections.KtList<string>;
|
|
1973
1975
|
readonly __doNotUseOrImplementIt: {
|
|
1974
1976
|
readonly GameHelper: unique symbol;
|
|
1975
1977
|
};
|
|
@@ -2007,7 +2009,6 @@ export declare interface RatingHelper {
|
|
|
2007
2009
|
isValidRatingForLeague(league: games.jass.logic.data.models.leagues.League, rating: number): boolean;
|
|
2008
2010
|
mapRatingToLeague(rating: number): games.jass.logic.data.models.leagues.League;
|
|
2009
2011
|
getLeaguesConfig(): games.jass.logic.data.models.leagues.LeaguesConfig;
|
|
2010
|
-
mapToLeague(name: string): games.jass.logic.data.models.leagues.League;
|
|
2011
2012
|
readonly __doNotUseOrImplementIt: {
|
|
2012
2013
|
readonly RatingHelper: unique symbol;
|
|
2013
2014
|
};
|
package/Logic_Debertz-engine.js
CHANGED
|
@@ -34867,7 +34867,7 @@
|
|
|
34867
34867
|
}
|
|
34868
34868
|
function GameHelper() {
|
|
34869
34869
|
}
|
|
34870
|
-
function
|
|
34870
|
+
function prepareLobbyFilterInternal($this, map) {
|
|
34871
34871
|
var jsObject = {};
|
|
34872
34872
|
var tmp = map.d2('players');
|
|
34873
34873
|
var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
|
|
@@ -34884,7 +34884,7 @@
|
|
|
34884
34884
|
while (inductionVariable < last) {
|
|
34885
34885
|
var element = tmp0_safe_receiver[inductionVariable];
|
|
34886
34886
|
inductionVariable = inductionVariable + 1 | 0;
|
|
34887
|
-
// Inline function 'GameHelperImpl.
|
|
34887
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
34888
34888
|
validatePlayers($this, element);
|
|
34889
34889
|
}
|
|
34890
34890
|
tmp_0 = tmp0_safe_receiver;
|
|
@@ -34897,7 +34897,7 @@
|
|
|
34897
34897
|
// Inline function 'kotlin.takeIf' call
|
|
34898
34898
|
// Inline function 'kotlin.contracts.contract' call
|
|
34899
34899
|
var tmp_2;
|
|
34900
|
-
// Inline function 'GameHelperImpl.
|
|
34900
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
34901
34901
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
34902
34902
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
34903
34903
|
if (!(tmp1_safe_receiver.length === 0)) {
|
|
@@ -34923,7 +34923,7 @@
|
|
|
34923
34923
|
while (inductionVariable_0 < last_0) {
|
|
34924
34924
|
var element_0 = tmp2_safe_receiver[inductionVariable_0];
|
|
34925
34925
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
34926
|
-
// Inline function 'GameHelperImpl.
|
|
34926
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
34927
34927
|
validatePoints($this, element_0);
|
|
34928
34928
|
}
|
|
34929
34929
|
tmp_4 = tmp2_safe_receiver;
|
|
@@ -34936,7 +34936,7 @@
|
|
|
34936
34936
|
// Inline function 'kotlin.takeIf' call
|
|
34937
34937
|
// Inline function 'kotlin.contracts.contract' call
|
|
34938
34938
|
var tmp_6;
|
|
34939
|
-
// Inline function 'GameHelperImpl.
|
|
34939
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
34940
34940
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
34941
34941
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
34942
34942
|
if (!(tmp3_safe_receiver.length === 0)) {
|
|
@@ -34962,7 +34962,7 @@
|
|
|
34962
34962
|
while (inductionVariable_1 < last_1) {
|
|
34963
34963
|
var element_1 = tmp4_safe_receiver[inductionVariable_1];
|
|
34964
34964
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
34965
|
-
// Inline function 'GameHelperImpl.
|
|
34965
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
34966
34966
|
validateTimeoutTime($this, element_1);
|
|
34967
34967
|
}
|
|
34968
34968
|
tmp_8 = tmp4_safe_receiver;
|
|
@@ -34975,7 +34975,7 @@
|
|
|
34975
34975
|
// Inline function 'kotlin.takeIf' call
|
|
34976
34976
|
// Inline function 'kotlin.contracts.contract' call
|
|
34977
34977
|
var tmp_10;
|
|
34978
|
-
// Inline function 'GameHelperImpl.
|
|
34978
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
34979
34979
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
34980
34980
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
34981
34981
|
if (!(tmp5_safe_receiver.length === 0)) {
|
|
@@ -35001,7 +35001,7 @@
|
|
|
35001
35001
|
while (inductionVariable_2 < last_2) {
|
|
35002
35002
|
var element_2 = tmp6_safe_receiver[inductionVariable_2];
|
|
35003
35003
|
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
35004
|
-
// Inline function 'GameHelperImpl.
|
|
35004
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
35005
35005
|
validateLeague($this, element_2);
|
|
35006
35006
|
}
|
|
35007
35007
|
tmp_12 = tmp6_safe_receiver;
|
|
@@ -35014,7 +35014,7 @@
|
|
|
35014
35014
|
// Inline function 'kotlin.takeIf' call
|
|
35015
35015
|
// Inline function 'kotlin.contracts.contract' call
|
|
35016
35016
|
var tmp_14;
|
|
35017
|
-
// Inline function 'GameHelperImpl.
|
|
35017
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
35018
35018
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
35019
35019
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
35020
35020
|
if (!(tmp7_safe_receiver.length === 0)) {
|
|
@@ -35040,7 +35040,7 @@
|
|
|
35040
35040
|
while (inductionVariable_3 < last_3) {
|
|
35041
35041
|
var element_3 = tmp8_safe_receiver[inductionVariable_3];
|
|
35042
35042
|
inductionVariable_3 = inductionVariable_3 + 1 | 0;
|
|
35043
|
-
// Inline function 'GameHelperImpl.
|
|
35043
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
35044
35044
|
validateRulesSetType($this, element_3);
|
|
35045
35045
|
}
|
|
35046
35046
|
tmp_16 = tmp8_safe_receiver;
|
|
@@ -35053,7 +35053,7 @@
|
|
|
35053
35053
|
// Inline function 'kotlin.takeIf' call
|
|
35054
35054
|
// Inline function 'kotlin.contracts.contract' call
|
|
35055
35055
|
var tmp_18;
|
|
35056
|
-
// Inline function 'GameHelperImpl.
|
|
35056
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
35057
35057
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
35058
35058
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
35059
35059
|
if (!(tmp9_safe_receiver.length === 0)) {
|
|
@@ -35106,7 +35106,7 @@
|
|
|
35106
35106
|
var tmp0_iterator = this_0.j();
|
|
35107
35107
|
while (tmp0_iterator.k()) {
|
|
35108
35108
|
var item = tmp0_iterator.l();
|
|
35109
|
-
// Inline function 'GameHelperImpl.
|
|
35109
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
35110
35110
|
var tmp$ret$39 = item.i2_1;
|
|
35111
35111
|
destination.e(tmp$ret$39);
|
|
35112
35112
|
}
|
|
@@ -35125,7 +35125,7 @@
|
|
|
35125
35125
|
var tmp0_iterator_0 = this_1.j();
|
|
35126
35126
|
while (tmp0_iterator_0.k()) {
|
|
35127
35127
|
var item_0 = tmp0_iterator_0.l();
|
|
35128
|
-
// Inline function 'GameHelperImpl.
|
|
35128
|
+
// Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
|
|
35129
35129
|
// Inline function 'kotlin.text.lowercase' call
|
|
35130
35130
|
// Inline function 'kotlin.js.asDynamic' call
|
|
35131
35131
|
var tmp$ret$45 = item_0.i2_1.toLowerCase();
|
|
@@ -35402,7 +35402,11 @@
|
|
|
35402
35402
|
var tmp$ret$0 = item.i2_1;
|
|
35403
35403
|
destination.e(tmp$ret$0);
|
|
35404
35404
|
}
|
|
35405
|
-
|
|
35405
|
+
var tmp = destination;
|
|
35406
|
+
// Inline function 'kotlin.text.uppercase' call
|
|
35407
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
35408
|
+
var tmp$ret$4 = league.toUpperCase();
|
|
35409
|
+
if (!tmp.p1(tmp$ret$4)) {
|
|
35406
35410
|
throw IllegalStateException_init_$Create$('Not valid league ' + league);
|
|
35407
35411
|
}
|
|
35408
35412
|
}
|
|
@@ -35731,7 +35735,7 @@
|
|
|
35731
35735
|
protoOf(GameHelperImpl).mapRules = function (rules) {
|
|
35732
35736
|
return mapRulesObject(this, rules);
|
|
35733
35737
|
};
|
|
35734
|
-
protoOf(GameHelperImpl).
|
|
35738
|
+
protoOf(GameHelperImpl).prepareLobbyConfigWithPagination = function (config) {
|
|
35735
35739
|
var map = mapOfObject(config);
|
|
35736
35740
|
var tmp = map.d2('limit');
|
|
35737
35741
|
var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
|
|
@@ -35741,18 +35745,245 @@
|
|
|
35741
35745
|
} else {
|
|
35742
35746
|
// Inline function 'kotlin.also' call
|
|
35743
35747
|
// Inline function 'kotlin.contracts.contract' call
|
|
35744
|
-
// Inline function 'GameHelperImpl.
|
|
35748
|
+
// Inline function 'GameHelperImpl.prepareLobbyConfigWithPagination.<anonymous>' call
|
|
35745
35749
|
validateLimit(this, tmp0_safe_receiver);
|
|
35746
35750
|
tmp_0 = tmp0_safe_receiver;
|
|
35747
35751
|
}
|
|
35748
35752
|
var limit = tmp_0;
|
|
35749
|
-
var jsObject =
|
|
35753
|
+
var jsObject = prepareLobbyFilterInternal(this, map);
|
|
35750
35754
|
jsObject['limit'] = limit == null ? 20 : limit;
|
|
35751
35755
|
return jsObject;
|
|
35752
35756
|
};
|
|
35753
|
-
protoOf(GameHelperImpl).
|
|
35757
|
+
protoOf(GameHelperImpl).prepareLobbyConfig = function (config) {
|
|
35754
35758
|
var map = mapOfObject(config);
|
|
35755
|
-
return
|
|
35759
|
+
return prepareLobbyFilterInternal(this, map);
|
|
35760
|
+
};
|
|
35761
|
+
protoOf(GameHelperImpl).prepareLeagueConfig = function (config) {
|
|
35762
|
+
var map = mapOfObject(config);
|
|
35763
|
+
var jsObject = {};
|
|
35764
|
+
var tmp = map.d2('players');
|
|
35765
|
+
var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
|
|
35766
|
+
var tmp_0;
|
|
35767
|
+
if (tmp0_safe_receiver == null) {
|
|
35768
|
+
tmp_0 = null;
|
|
35769
|
+
} else {
|
|
35770
|
+
// Inline function 'kotlin.collections.onEach' call
|
|
35771
|
+
// Inline function 'kotlin.apply' call
|
|
35772
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
35773
|
+
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
35774
|
+
var inductionVariable = 0;
|
|
35775
|
+
var last = tmp0_safe_receiver.length;
|
|
35776
|
+
while (inductionVariable < last) {
|
|
35777
|
+
var element = tmp0_safe_receiver[inductionVariable];
|
|
35778
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
35779
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
35780
|
+
validatePlayers(this, element);
|
|
35781
|
+
}
|
|
35782
|
+
tmp_0 = tmp0_safe_receiver;
|
|
35783
|
+
}
|
|
35784
|
+
var tmp1_safe_receiver = tmp_0;
|
|
35785
|
+
var tmp_1;
|
|
35786
|
+
if (tmp1_safe_receiver == null) {
|
|
35787
|
+
tmp_1 = null;
|
|
35788
|
+
} else {
|
|
35789
|
+
// Inline function 'kotlin.takeIf' call
|
|
35790
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
35791
|
+
var tmp_2;
|
|
35792
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
35793
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
35794
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
35795
|
+
if (!(tmp1_safe_receiver.length === 0)) {
|
|
35796
|
+
tmp_2 = tmp1_safe_receiver;
|
|
35797
|
+
} else {
|
|
35798
|
+
tmp_2 = null;
|
|
35799
|
+
}
|
|
35800
|
+
tmp_1 = tmp_2;
|
|
35801
|
+
}
|
|
35802
|
+
var players = tmp_1;
|
|
35803
|
+
var tmp_3 = map.d2('points');
|
|
35804
|
+
var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
|
|
35805
|
+
var tmp_4;
|
|
35806
|
+
if (tmp2_safe_receiver == null) {
|
|
35807
|
+
tmp_4 = null;
|
|
35808
|
+
} else {
|
|
35809
|
+
// Inline function 'kotlin.collections.onEach' call
|
|
35810
|
+
// Inline function 'kotlin.apply' call
|
|
35811
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
35812
|
+
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
35813
|
+
var inductionVariable_0 = 0;
|
|
35814
|
+
var last_0 = tmp2_safe_receiver.length;
|
|
35815
|
+
while (inductionVariable_0 < last_0) {
|
|
35816
|
+
var element_0 = tmp2_safe_receiver[inductionVariable_0];
|
|
35817
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
35818
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
35819
|
+
validatePoints(this, element_0);
|
|
35820
|
+
}
|
|
35821
|
+
tmp_4 = tmp2_safe_receiver;
|
|
35822
|
+
}
|
|
35823
|
+
var tmp3_safe_receiver = tmp_4;
|
|
35824
|
+
var tmp_5;
|
|
35825
|
+
if (tmp3_safe_receiver == null) {
|
|
35826
|
+
tmp_5 = null;
|
|
35827
|
+
} else {
|
|
35828
|
+
// Inline function 'kotlin.takeIf' call
|
|
35829
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
35830
|
+
var tmp_6;
|
|
35831
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
35832
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
35833
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
35834
|
+
if (!(tmp3_safe_receiver.length === 0)) {
|
|
35835
|
+
tmp_6 = tmp3_safe_receiver;
|
|
35836
|
+
} else {
|
|
35837
|
+
tmp_6 = null;
|
|
35838
|
+
}
|
|
35839
|
+
tmp_5 = tmp_6;
|
|
35840
|
+
}
|
|
35841
|
+
var points = tmp_5;
|
|
35842
|
+
var tmp_7 = map.d2('timeoutTime');
|
|
35843
|
+
var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
|
|
35844
|
+
var tmp_8;
|
|
35845
|
+
if (tmp4_safe_receiver == null) {
|
|
35846
|
+
tmp_8 = null;
|
|
35847
|
+
} else {
|
|
35848
|
+
// Inline function 'kotlin.collections.onEach' call
|
|
35849
|
+
// Inline function 'kotlin.apply' call
|
|
35850
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
35851
|
+
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
35852
|
+
var inductionVariable_1 = 0;
|
|
35853
|
+
var last_1 = tmp4_safe_receiver.length;
|
|
35854
|
+
while (inductionVariable_1 < last_1) {
|
|
35855
|
+
var element_1 = tmp4_safe_receiver[inductionVariable_1];
|
|
35856
|
+
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
35857
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
35858
|
+
validateTimeoutTime(this, element_1);
|
|
35859
|
+
}
|
|
35860
|
+
tmp_8 = tmp4_safe_receiver;
|
|
35861
|
+
}
|
|
35862
|
+
var tmp5_safe_receiver = tmp_8;
|
|
35863
|
+
var tmp_9;
|
|
35864
|
+
if (tmp5_safe_receiver == null) {
|
|
35865
|
+
tmp_9 = null;
|
|
35866
|
+
} else {
|
|
35867
|
+
// Inline function 'kotlin.takeIf' call
|
|
35868
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
35869
|
+
var tmp_10;
|
|
35870
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
35871
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
35872
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
35873
|
+
if (!(tmp5_safe_receiver.length === 0)) {
|
|
35874
|
+
tmp_10 = tmp5_safe_receiver;
|
|
35875
|
+
} else {
|
|
35876
|
+
tmp_10 = null;
|
|
35877
|
+
}
|
|
35878
|
+
tmp_9 = tmp_10;
|
|
35879
|
+
}
|
|
35880
|
+
var timeoutTime = tmp_9;
|
|
35881
|
+
var tmp_11 = map.d2('league');
|
|
35882
|
+
var tmp6_safe_receiver = (!(tmp_11 == null) ? typeof tmp_11 === 'string' : false) ? tmp_11 : null;
|
|
35883
|
+
var tmp_12;
|
|
35884
|
+
if (tmp6_safe_receiver == null) {
|
|
35885
|
+
tmp_12 = null;
|
|
35886
|
+
} else {
|
|
35887
|
+
// Inline function 'kotlin.apply' call
|
|
35888
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
35889
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
35890
|
+
validateLeague(this, tmp6_safe_receiver);
|
|
35891
|
+
tmp_12 = tmp6_safe_receiver;
|
|
35892
|
+
}
|
|
35893
|
+
var league = tmp_12;
|
|
35894
|
+
var tmp_13 = map.d2('rulesPreset');
|
|
35895
|
+
var tmp7_safe_receiver = (tmp_13 == null ? true : isArray(tmp_13)) ? tmp_13 : null;
|
|
35896
|
+
var tmp_14;
|
|
35897
|
+
if (tmp7_safe_receiver == null) {
|
|
35898
|
+
tmp_14 = null;
|
|
35899
|
+
} else {
|
|
35900
|
+
// Inline function 'kotlin.collections.onEach' call
|
|
35901
|
+
// Inline function 'kotlin.apply' call
|
|
35902
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
35903
|
+
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
35904
|
+
var inductionVariable_2 = 0;
|
|
35905
|
+
var last_2 = tmp7_safe_receiver.length;
|
|
35906
|
+
while (inductionVariable_2 < last_2) {
|
|
35907
|
+
var element_2 = tmp7_safe_receiver[inductionVariable_2];
|
|
35908
|
+
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
35909
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
35910
|
+
validateRulesSetType(this, element_2);
|
|
35911
|
+
}
|
|
35912
|
+
tmp_14 = tmp7_safe_receiver;
|
|
35913
|
+
}
|
|
35914
|
+
var tmp8_safe_receiver = tmp_14;
|
|
35915
|
+
var tmp_15;
|
|
35916
|
+
if (tmp8_safe_receiver == null) {
|
|
35917
|
+
tmp_15 = null;
|
|
35918
|
+
} else {
|
|
35919
|
+
// Inline function 'kotlin.takeIf' call
|
|
35920
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
35921
|
+
var tmp_16;
|
|
35922
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
35923
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
35924
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
35925
|
+
if (!(tmp8_safe_receiver.length === 0)) {
|
|
35926
|
+
tmp_16 = tmp8_safe_receiver;
|
|
35927
|
+
} else {
|
|
35928
|
+
tmp_16 = null;
|
|
35929
|
+
}
|
|
35930
|
+
tmp_15 = tmp_16;
|
|
35931
|
+
}
|
|
35932
|
+
var rulesPreset = tmp_15;
|
|
35933
|
+
var tmp_17 = map.d2('isChatEnabled');
|
|
35934
|
+
var isChatEnabled = (!(tmp_17 == null) ? typeof tmp_17 === 'boolean' : false) ? tmp_17 : null;
|
|
35935
|
+
var tmp_18;
|
|
35936
|
+
if (players == null) {
|
|
35937
|
+
// Inline function 'kotlin.arrayOf' call
|
|
35938
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
35939
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
35940
|
+
tmp_18 = [2, 3, 4, 5];
|
|
35941
|
+
} else {
|
|
35942
|
+
tmp_18 = players;
|
|
35943
|
+
}
|
|
35944
|
+
jsObject['players'] = tmp_18;
|
|
35945
|
+
var tmp_19;
|
|
35946
|
+
if (points == null) {
|
|
35947
|
+
// Inline function 'kotlin.arrayOf' call
|
|
35948
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
35949
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
35950
|
+
tmp_19 = [301, 501, 1001];
|
|
35951
|
+
} else {
|
|
35952
|
+
tmp_19 = points;
|
|
35953
|
+
}
|
|
35954
|
+
jsObject['points'] = tmp_19;
|
|
35955
|
+
var tmp_20;
|
|
35956
|
+
if (timeoutTime == null) {
|
|
35957
|
+
// Inline function 'kotlin.arrayOf' call
|
|
35958
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
35959
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
35960
|
+
tmp_20 = [15, 30, 45];
|
|
35961
|
+
} else {
|
|
35962
|
+
tmp_20 = timeoutTime;
|
|
35963
|
+
}
|
|
35964
|
+
jsObject['timeoutTime'] = tmp_20;
|
|
35965
|
+
var tmp_21;
|
|
35966
|
+
if (rulesPreset == null) {
|
|
35967
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
35968
|
+
// Inline function 'kotlin.collections.map' call
|
|
35969
|
+
var this_0 = get_entries_2();
|
|
35970
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
35971
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
35972
|
+
var tmp0_iterator = this_0.j();
|
|
35973
|
+
while (tmp0_iterator.k()) {
|
|
35974
|
+
var item = tmp0_iterator.l();
|
|
35975
|
+
// Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
|
|
35976
|
+
var tmp$ret$34 = item.i2_1;
|
|
35977
|
+
destination.e(tmp$ret$34);
|
|
35978
|
+
}
|
|
35979
|
+
tmp_21 = copyToArray(destination);
|
|
35980
|
+
} else {
|
|
35981
|
+
tmp_21 = rulesPreset;
|
|
35982
|
+
}
|
|
35983
|
+
jsObject['rulesPreset'] = tmp_21;
|
|
35984
|
+
jsObject['league'] = league;
|
|
35985
|
+
jsObject['isChatEnabled'] = isChatEnabled;
|
|
35986
|
+
return jsObject;
|
|
35756
35987
|
};
|
|
35757
35988
|
protoOf(GameHelperImpl).isValidConfigObject = function (config) {
|
|
35758
35989
|
var map = mapOfObject(config);
|
|
@@ -35831,6 +36062,22 @@
|
|
|
35831
36062
|
var tmp$ret$1 = name.toUpperCase();
|
|
35832
36063
|
return valueOf_0(tmp$ret$1);
|
|
35833
36064
|
};
|
|
36065
|
+
protoOf(GameHelperImpl).getAllLeagues = function () {
|
|
36066
|
+
// Inline function 'kotlin.collections.map' call
|
|
36067
|
+
var this_0 = get_entries();
|
|
36068
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
36069
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
36070
|
+
var tmp0_iterator = this_0.j();
|
|
36071
|
+
while (tmp0_iterator.k()) {
|
|
36072
|
+
var item = tmp0_iterator.l();
|
|
36073
|
+
// Inline function 'GameHelperImpl.getAllLeagues.<anonymous>' call
|
|
36074
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
36075
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
36076
|
+
var tmp$ret$2 = item.i2_1.toLowerCase();
|
|
36077
|
+
destination.e(tmp$ret$2);
|
|
36078
|
+
}
|
|
36079
|
+
return destination;
|
|
36080
|
+
};
|
|
35834
36081
|
function GameResources() {
|
|
35835
36082
|
}
|
|
35836
36083
|
var AvatarSet_ORIGIN_instance;
|
|
@@ -36179,12 +36426,6 @@
|
|
|
36179
36426
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
36180
36427
|
return this.e40_1.z3u();
|
|
36181
36428
|
};
|
|
36182
|
-
protoOf(RatingHelperImpl).mapToLeague = function (name) {
|
|
36183
|
-
// Inline function 'kotlin.text.uppercase' call
|
|
36184
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
36185
|
-
var tmp$ret$1 = name.toUpperCase();
|
|
36186
|
-
return valueOf_0(tmp$ret$1);
|
|
36187
|
-
};
|
|
36188
36429
|
function engineHelpersModule() {
|
|
36189
36430
|
return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
|
|
36190
36431
|
}
|