raspberry_games_server_game_logic 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.
@@ -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;
@@ -57,6 +57,12 @@ if (typeof Math.clz32 === 'undefined') {
57
57
  };
58
58
  }(Math.log, Math.LN2);
59
59
  }
60
+ if (typeof String.prototype.startsWith === 'undefined') {
61
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
62
+ position = position || 0;
63
+ return this.lastIndexOf(searchString, position) === position;
64
+ }});
65
+ }
60
66
  if (typeof String.prototype.endsWith === 'undefined') {
61
67
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
62
68
  var subjectString = this.toString();
@@ -68,12 +74,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
68
74
  return lastIndex !== -1 && lastIndex === position;
69
75
  }});
70
76
  }
71
- if (typeof String.prototype.startsWith === 'undefined') {
72
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
73
- position = position || 0;
74
- return this.lastIndexOf(searchString, position) === position;
75
- }});
76
- }
77
77
  //endregion
78
78
  (function (factory) {
79
79
  if (typeof define === 'function' && define.amd)