raspberry_games_engine_helpers 1.8.433 → 1.8.434

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.
@@ -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.433';
232
+ this.version = '1.8.434';
233
233
  }
234
234
  protoOf(GameEngineConfig).l17 = function () {
235
235
  return this.version;
@@ -2907,7 +2907,6 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
2907
2907
  }
2908
2908
  }
2909
2909
  export declare interface GameHelper {
2910
- getBotRatingRange(league: Nullable<string>): models.BotRatingRange;
2911
2910
  filterLivePlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>, includeBots?: boolean): Array<string>;
2912
2911
  filterLiveDuringGamePlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>, includeBots?: boolean): Array<string>;
2913
2912
  filterBotPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
@@ -2963,6 +2962,8 @@ export declare interface ParserHelper {
2963
2962
  };
2964
2963
  }
2965
2964
  export declare interface RatingHelper {
2965
+ getBotRatingRange(league: Nullable<string>): models.BotRatingRange;
2966
+ mapToLeague(name: string): games.jass.logic.data.models.leagues.League;
2966
2967
  isValidRatingForLeague(league: games.jass.logic.data.models.leagues.League, rating: number): boolean;
2967
2968
  mapRatingToLeague(rating: number): games.jass.logic.data.models.leagues.League;
2968
2969
  getLeaguesConfig(): games.jass.logic.data.models.leagues.LeaguesConfig;
@@ -224,10 +224,9 @@
224
224
  var waitForExpectantAnimation = kotlin_io_raspberryapps_game_engine_core.$_$.a1;
225
225
  var isArray = kotlin_kotlin.$_$.n9;
226
226
  var mapOfObject = kotlin_io_raspberryapps_game_engine_core.$_$.h1;
227
- var Default_getInstance = kotlin_kotlin.$_$.m3;
228
- var numberToInt = kotlin_kotlin.$_$.ba;
229
227
  var getPlayer = kotlin_io_raspberryapps_game_engine_core.$_$.g;
230
228
  var GameUserInfo = kotlin_io_raspberryapps_game_engine_core.$_$.b;
229
+ var Default_getInstance = kotlin_kotlin.$_$.m3;
231
230
  var d = kotlin_io_raspberryapps_cardgame_logger.$_$.h;
232
231
  var generateMsg = kotlin_io_raspberryapps_cardgame_logger.$_$.b;
233
232
  var e = kotlin_io_raspberryapps_cardgame_logger.$_$.i;
@@ -236,6 +235,7 @@
236
235
  var w = kotlin_io_raspberryapps_cardgame_logger.$_$.l;
237
236
  var LoggerOutput = kotlin_io_raspberryapps_cardgame_logger.$_$.a;
238
237
  var KtList = kotlin_kotlin.$_$.h4;
238
+ var numberToInt = kotlin_kotlin.$_$.ba;
239
239
  var RaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.g;
240
240
  var KProperty1 = kotlin_kotlin.$_$.va;
241
241
  var getPropertyCallableRef = kotlin_kotlin.$_$.e9;
@@ -37214,21 +37214,6 @@
37214
37214
  function GameHelperImpl(logger) {
37215
37215
  this.p45_1 = logger;
37216
37216
  }
37217
- protoOf(GameHelperImpl).getBotRatingRange = function (league) {
37218
- var tmp;
37219
- if (league == null) {
37220
- tmp = Default_getInstance().yd() ? League_BEGINNER_getInstance() : League_ROOKIE_getInstance();
37221
- } else {
37222
- tmp = this.mapToLeague(league);
37223
- }
37224
- var targetLeague = tmp;
37225
- var defaultConfig = Companion_instance_9.defaultConfig();
37226
- var minRating = targetLeague.getMinRating();
37227
- var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
37228
- var factor = 0.3;
37229
- var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * factor);
37230
- return new BotRatingRange(minRating, botMaxRating);
37231
- };
37232
37217
  protoOf(GameHelperImpl).m45 = function (store, playerIds, includeBots) {
37233
37218
  var state = store.state;
37234
37219
  var tmp;
@@ -38171,6 +38156,27 @@
38171
38156
  this.h46_1 = json;
38172
38157
  this.i46_1 = userRatingInteractor;
38173
38158
  }
38159
+ protoOf(RatingHelperImpl).getBotRatingRange = function (league) {
38160
+ var tmp;
38161
+ if (league == null) {
38162
+ tmp = Default_getInstance().yd() ? League_BEGINNER_getInstance() : League_ROOKIE_getInstance();
38163
+ } else {
38164
+ tmp = this.mapToLeague(league);
38165
+ }
38166
+ var targetLeague = tmp;
38167
+ var defaultConfig = Companion_instance_9.defaultConfig();
38168
+ var minRating = targetLeague.getMinRating();
38169
+ var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
38170
+ var factor = 0.3;
38171
+ var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * factor);
38172
+ return new BotRatingRange(minRating, botMaxRating);
38173
+ };
38174
+ protoOf(RatingHelperImpl).mapToLeague = function (name) {
38175
+ // Inline function 'kotlin.text.uppercase' call
38176
+ // Inline function 'kotlin.js.asDynamic' call
38177
+ var tmp$ret$1 = name.toUpperCase();
38178
+ return valueOf_0(tmp$ret$1);
38179
+ };
38174
38180
  protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
38175
38181
  return this.i46_1.v40(league, rating);
38176
38182
  };