raspberry_games_engine_helpers 1.8.432 → 1.8.433

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.
@@ -380,7 +380,7 @@
380
380
  function addFormatStructureForTime(structure) {
381
381
  this.i1c(structure);
382
382
  }
383
- initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithTime, WithDate]);
383
+ initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
384
384
  initMetadataForClass(Builder_0, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder]);
385
385
  initMetadataForClass(LocalDateTimeFormat, 'LocalDateTimeFormat', VOID, AbstractDateTimeFormat);
386
386
  function set_fractionOfSecond(value) {
@@ -229,7 +229,7 @@
229
229
  initMetadataForClass(LoggerOutputDataDto, 'LoggerOutputDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_10});
230
230
  //endregion
231
231
  function GameEngineConfig() {
232
- this.version = '1.8.432';
232
+ this.version = '1.8.433';
233
233
  }
234
234
  protoOf(GameEngineConfig).l17 = function () {
235
235
  return this.version;
@@ -2907,7 +2907,7 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
2907
2907
  }
2908
2908
  }
2909
2909
  export declare interface GameHelper {
2910
- getBotRatingRange(league: Nullable<string>): Array<number>;
2910
+ getBotRatingRange(league: Nullable<string>): models.BotRatingRange;
2911
2911
  filterLivePlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>, includeBots?: boolean): Array<string>;
2912
2912
  filterLiveDuringGamePlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>, includeBots?: boolean): Array<string>;
2913
2913
  filterBotPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
@@ -2984,4 +2984,19 @@ export declare namespace di {
2984
2984
  const constructor: abstract new () => EngineHelpersFactory;
2985
2985
  }
2986
2986
  }
2987
+ export declare namespace models {
2988
+ class BotRatingRange {
2989
+ constructor(min: number, max: number);
2990
+ get min(): number;
2991
+ get max(): number;
2992
+ copy(min?: number, max?: number): models.BotRatingRange;
2993
+ toString(): string;
2994
+ hashCode(): number;
2995
+ equals(other: Nullable<any>): boolean;
2996
+ }
2997
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
2998
+ namespace BotRatingRange.$metadata$ {
2999
+ const constructor: abstract new () => BotRatingRange;
3000
+ }
3001
+ }
2987
3002
  export as namespace io_raspberryapps_game_engine_engine;
@@ -904,6 +904,7 @@
904
904
  initMetadataForInterface(RatingHelper, 'RatingHelper');
905
905
  initMetadataForClass(RatingHelperImpl, 'RatingHelperImpl', VOID, VOID, [RatingHelper]);
906
906
  initMetadataForClass(EngineHelpersFactory, 'EngineHelpersFactory', EngineHelpersFactory);
907
+ initMetadataForClass(BotRatingRange, 'BotRatingRange');
907
908
  //endregion
908
909
  function GameStoreContract() {
909
910
  }
@@ -37226,10 +37227,7 @@
37226
37227
  var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
37227
37228
  var factor = 0.3;
37228
37229
  var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * factor);
37229
- // Inline function 'kotlin.arrayOf' call
37230
- // Inline function 'kotlin.js.unsafeCast' call
37231
- // Inline function 'kotlin.js.asDynamic' call
37232
- return [minRating, botMaxRating];
37230
+ return new BotRatingRange(minRating, botMaxRating);
37233
37231
  };
37234
37232
  protoOf(GameHelperImpl).m45 = function (store, playerIds, includeBots) {
37235
37233
  var state = store.state;
@@ -38482,6 +38480,49 @@
38482
38480
  getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
38483
38481
  return tmp0.v1();
38484
38482
  };
38483
+ function BotRatingRange(min, max) {
38484
+ this.min = min;
38485
+ this.max = max;
38486
+ }
38487
+ protoOf(BotRatingRange).u46 = function () {
38488
+ return this.min;
38489
+ };
38490
+ protoOf(BotRatingRange).v46 = function () {
38491
+ return this.max;
38492
+ };
38493
+ protoOf(BotRatingRange).sc = function () {
38494
+ return this.min;
38495
+ };
38496
+ protoOf(BotRatingRange).tc = function () {
38497
+ return this.max;
38498
+ };
38499
+ protoOf(BotRatingRange).w46 = function (min, max) {
38500
+ return new BotRatingRange(min, max);
38501
+ };
38502
+ protoOf(BotRatingRange).copy = function (min, max, $super) {
38503
+ min = min === VOID ? this.min : min;
38504
+ max = max === VOID ? this.max : max;
38505
+ return $super === VOID ? this.w46(min, max) : $super.w46.call(this, min, max);
38506
+ };
38507
+ protoOf(BotRatingRange).toString = function () {
38508
+ return 'BotRatingRange(min=' + this.min + ', max=' + this.max + ')';
38509
+ };
38510
+ protoOf(BotRatingRange).hashCode = function () {
38511
+ var result = this.min;
38512
+ result = imul(result, 31) + this.max | 0;
38513
+ return result;
38514
+ };
38515
+ protoOf(BotRatingRange).equals = function (other) {
38516
+ if (this === other)
38517
+ return true;
38518
+ if (!(other instanceof BotRatingRange))
38519
+ return false;
38520
+ if (!(this.min === other.min))
38521
+ return false;
38522
+ if (!(this.max === other.max))
38523
+ return false;
38524
+ return true;
38525
+ };
38485
38526
  //region block: post-declaration
38486
38527
  defineProp(protoOf(GameLifecycleState), 'isActive', protoOf(GameLifecycleState).k2g);
38487
38528
  defineProp(protoOf(GameLifecycleState), 'isFinishing', protoOf(GameLifecycleState).l2g);
@@ -40038,6 +40079,8 @@
40038
40079
  defineProp(_, 'WARN', get_WARN, VOID, true);
40039
40080
  var $di = _.di || (_.di = {});
40040
40081
  $di.EngineHelpersFactory = EngineHelpersFactory;
40082
+ var $models = _.models || (_.models = {});
40083
+ $models.BotRatingRange = BotRatingRange;
40041
40084
  }
40042
40085
  $jsExportAll$(_);
40043
40086
  kotlin_kotlin.$jsExportAll$(_);