raspberry_games_engine_helpers 1.8.326 → 1.8.328

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.
@@ -324,7 +324,7 @@
324
324
  function addFormatStructureForTime(structure) {
325
325
  this.c1l(structure);
326
326
  }
327
- initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
327
+ initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithTime, WithDate]);
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, WithDate, WithTime, WithUtcOffset]);
380
+ initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithDate, WithUtcOffset, WithTime]);
381
381
  initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
382
382
  initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
383
383
  initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
@@ -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.326';
218
+ this.version = '1.8.328';
219
219
  }
220
220
  protoOf(GameEngineConfig).o25 = function () {
221
221
  return this.version;
@@ -1971,6 +1971,7 @@ export declare interface GameHelper {
1971
1971
  getRulesByString(name: string): games.jass.logic.data.models.rules.Rules;
1972
1972
  mapRulesSetType(name: string): games.jass.logic.data.models.rules.RulesSetType;
1973
1973
  mapToLeague(name: string): games.jass.logic.data.models.leagues.League;
1974
+ getAllLeagues(): Array<string>;
1974
1975
  readonly __doNotUseOrImplementIt: {
1975
1976
  readonly GameHelper: unique symbol;
1976
1977
  };
@@ -2008,7 +2009,6 @@ export declare interface RatingHelper {
2008
2009
  isValidRatingForLeague(league: games.jass.logic.data.models.leagues.League, rating: number): boolean;
2009
2010
  mapRatingToLeague(rating: number): games.jass.logic.data.models.leagues.League;
2010
2011
  getLeaguesConfig(): games.jass.logic.data.models.leagues.LeaguesConfig;
2011
- mapToLeague(name: string): games.jass.logic.data.models.leagues.League;
2012
2012
  readonly __doNotUseOrImplementIt: {
2013
2013
  readonly RatingHelper: unique symbol;
2014
2014
  };
@@ -35422,11 +35422,7 @@
35422
35422
  var tmp$ret$0 = item.i2_1;
35423
35423
  destination.e(tmp$ret$0);
35424
35424
  }
35425
- var tmp = destination;
35426
- // Inline function 'kotlin.text.uppercase' call
35427
- // Inline function 'kotlin.js.asDynamic' call
35428
- var tmp$ret$4 = rulesSetType.toUpperCase();
35429
- if (!tmp.p1(tmp$ret$4)) {
35425
+ if (!destination.p1(rulesSetType)) {
35430
35426
  throw IllegalStateException_init_$Create$('Not valid rulesSetType mode ' + rulesSetType);
35431
35427
  }
35432
35428
  }
@@ -36058,10 +36054,7 @@
36058
36054
  return tmp;
36059
36055
  };
36060
36056
  protoOf(GameHelperImpl).mapRulesSetType = function (name) {
36061
- // Inline function 'kotlin.text.uppercase' call
36062
- // Inline function 'kotlin.js.asDynamic' call
36063
- var tmp$ret$1 = name.toUpperCase();
36064
- return valueOf_6(tmp$ret$1);
36057
+ return valueOf_6(name);
36065
36058
  };
36066
36059
  protoOf(GameHelperImpl).mapToLeague = function (name) {
36067
36060
  // Inline function 'kotlin.text.uppercase' call
@@ -36069,6 +36062,23 @@
36069
36062
  var tmp$ret$1 = name.toUpperCase();
36070
36063
  return valueOf_0(tmp$ret$1);
36071
36064
  };
36065
+ protoOf(GameHelperImpl).getAllLeagues = function () {
36066
+ // Inline function 'kotlin.collections.toTypedArray' call
36067
+ // Inline function 'kotlin.collections.map' call
36068
+ var this_0 = get_entries();
36069
+ // Inline function 'kotlin.collections.mapTo' call
36070
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
36071
+ var tmp0_iterator = this_0.j();
36072
+ while (tmp0_iterator.k()) {
36073
+ var item = tmp0_iterator.l();
36074
+ // Inline function 'GameHelperImpl.getAllLeagues.<anonymous>' call
36075
+ // Inline function 'kotlin.text.lowercase' call
36076
+ // Inline function 'kotlin.js.asDynamic' call
36077
+ var tmp$ret$2 = item.i2_1.toLowerCase();
36078
+ destination.e(tmp$ret$2);
36079
+ }
36080
+ return copyToArray(destination);
36081
+ };
36072
36082
  function GameResources() {
36073
36083
  }
36074
36084
  var AvatarSet_ORIGIN_instance;
@@ -36417,12 +36427,6 @@
36417
36427
  protoOf(RatingHelperImpl).getLeaguesConfig = function () {
36418
36428
  return this.e40_1.z3u();
36419
36429
  };
36420
- protoOf(RatingHelperImpl).mapToLeague = function (name) {
36421
- // Inline function 'kotlin.text.uppercase' call
36422
- // Inline function 'kotlin.js.asDynamic' call
36423
- var tmp$ret$1 = name.toUpperCase();
36424
- return valueOf_0(tmp$ret$1);
36425
- };
36426
36430
  function engineHelpersModule() {
36427
36431
  return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
36428
36432
  }