game_client_logic_deb 1.8.323 → 1.8.325

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.
@@ -252,12 +252,16 @@ export declare namespace com.logic.data.models {
252
252
  get name(): "NO_ACTIVE_PLAYERS";
253
253
  get ordinal(): 3;
254
254
  };
255
+ static get REVENGED(): com.logic.data.models.GameFinishedReason.Reason & {
256
+ get name(): "REVENGED";
257
+ get ordinal(): 4;
258
+ };
255
259
  static get GAME_NOT_EXISTS(): com.logic.data.models.GameFinishedReason.Reason & {
256
260
  get name(): "GAME_NOT_EXISTS";
257
- get ordinal(): 4;
261
+ get ordinal(): 5;
258
262
  };
259
- get name(): "DEPLOY" | "PLAYER_DELETED" | "FINISHED" | "NO_ACTIVE_PLAYERS" | "GAME_NOT_EXISTS";
260
- get ordinal(): 0 | 1 | 2 | 3 | 4;
263
+ get name(): "DEPLOY" | "PLAYER_DELETED" | "FINISHED" | "NO_ACTIVE_PLAYERS" | "REVENGED" | "GAME_NOT_EXISTS";
264
+ get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
261
265
  static values(): Array<com.logic.data.models.GameFinishedReason.Reason>;
262
266
  static valueOf(value: string): com.logic.data.models.GameFinishedReason.Reason;
263
267
  static get Companion(): {
@@ -1860,7 +1864,7 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
1860
1864
  }
1861
1865
  /* @ts-ignore: https://github.com/microsoft/TypeScript/issues/4628 */
1862
1866
  class FinishingGameMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements games.jass.logic.redux.actions.mechanic.TerminatedAction, com.logic.redux.actions.validation.NotValidateIfGameFinishing {
1863
- constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>, sessionAnalytics?: Nullable<games.jass.logic.data.models.GameSessionAnalytics>, gameHistory?: Nullable<games.jass.logic.data.models.table.history.GameHistory>, isRoundHistorySaved?: boolean, aid?: Nullable<string>);
1867
+ constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, transition: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>, sessionAnalytics?: Nullable<games.jass.logic.data.models.GameSessionAnalytics>, gameHistory?: Nullable<games.jass.logic.data.models.table.history.GameHistory>, isRoundHistorySaved?: boolean, aid?: Nullable<string>);
1864
1868
  get reason(): com.logic.data.models.TerminationGameReason;
1865
1869
  get isGameFinished(): boolean;
1866
1870
  get transition(): Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>;
@@ -1876,7 +1880,8 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
1876
1880
  notValidateWhenFinishing(): boolean;
1877
1881
  readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.MechanicAction["__doNotUseOrImplementIt"] & games.jass.logic.redux.actions.mechanic.TerminatedAction["__doNotUseOrImplementIt"] & com.logic.redux.actions.validation.NotValidateIfGameFinishing["__doNotUseOrImplementIt"];
1878
1882
  static get Companion(): {
1879
- withAnalytics(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, table: Nullable<games.jass.logic.data.models.table.JassTable>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>): games.jass.logic.redux.actions.mechanic.FinishingGameMechanicAction;
1883
+ fromTableWithAnalytics(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, table: Nullable<games.jass.logic.data.models.table.JassTable>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>): games.jass.logic.redux.actions.mechanic.FinishingGameMechanicAction;
1884
+ fromTable(table: Nullable<games.jass.logic.data.models.table.JassTable>): games.jass.logic.redux.actions.mechanic.FinishingGameMechanicAction;
1880
1885
  };
1881
1886
  }
1882
1887
  class FinishGameMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements com.logic.redux.actions.validation.NotValidateIfGameFinishing, games.jass.logic.redux.actions.mechanic.TerminatedAction {
@@ -1964,6 +1969,7 @@ export declare interface GameHelper {
1964
1969
  getRulesByType(rulesSetType: games.jass.logic.data.models.rules.RulesSetType): games.jass.logic.data.models.rules.Rules;
1965
1970
  getRulesByString(name: string): games.jass.logic.data.models.rules.Rules;
1966
1971
  mapRulesSetType(name: string): games.jass.logic.data.models.rules.RulesSetType;
1972
+ mapToLeague(name: string): games.jass.logic.data.models.leagues.League;
1967
1973
  readonly __doNotUseOrImplementIt: {
1968
1974
  readonly GameHelper: unique symbol;
1969
1975
  };
@@ -2001,6 +2007,7 @@ export declare interface RatingHelper {
2001
2007
  isValidRatingForLeague(league: games.jass.logic.data.models.leagues.League, rating: number): boolean;
2002
2008
  mapRatingToLeague(rating: number): games.jass.logic.data.models.leagues.League;
2003
2009
  getLeaguesConfig(): games.jass.logic.data.models.leagues.LeaguesConfig;
2010
+ mapToLeague(name: string): games.jass.logic.data.models.leagues.League;
2004
2011
  readonly __doNotUseOrImplementIt: {
2005
2012
  readonly RatingHelper: unique symbol;
2006
2013
  };
@@ -229,9 +229,8 @@
229
229
  var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.r2;
230
230
  var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
231
231
  var CombinationChoiceFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.g2;
232
- var ProcessingReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.w4;
233
- var FinishingGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w2;
234
232
  var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.h5;
233
+ var ProcessingReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.w4;
235
234
  var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z2;
236
235
  var WaitingActData = kotlin_io_raspberryapps_game_engine_engine.$_$.b1;
237
236
  var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.g5;
@@ -312,6 +311,7 @@
312
311
  var getWhoGotLastBribe = kotlin_io_raspberryapps_game_engine_engine.$_$.u;
313
312
  var get_byIdPlayerPredicate = kotlin_io_raspberryapps_game_engine_core.$_$.k;
314
313
  var updateItem = kotlin_io_raspberryapps_game_engine_core.$_$.l3;
314
+ var FinishingGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w2;
315
315
  var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.d2;
316
316
  var mapWithIndex = kotlin_io_raspberryapps_game_engine_core.$_$.p;
317
317
  var EarnPointsSceneData = kotlin_io_raspberryapps_game_engine_engine.$_$.y;
@@ -12589,11 +12589,9 @@
12589
12589
  var tmp_1 = Companion_instance_0;
12590
12590
  var tmp_2 = ProcessingReason_getInstance();
12591
12591
  var tmp1_elvis_lhs = table == null ? null : table.isGameFinished;
12592
- tmp_0 = tmp_1.withAnalytics(tmp_2, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, table);
12592
+ tmp_0 = tmp_1.fromTableWithAnalytics(tmp_2, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, table);
12593
12593
  } else {
12594
- var tmp_3 = ProcessingReason_getInstance();
12595
- var tmp3_elvis_lhs = table == null ? null : table.isGameFinished;
12596
- tmp_0 = new FinishingGameMechanicAction(tmp_3, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs);
12594
+ tmp_0 = Companion_instance_0.fromTable(table);
12597
12595
  }
12598
12596
  tmp(tmp_0);
12599
12597
  next(action_0);