client_plugin_logic_deb 1.8.247 → 1.8.250

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.s5d(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, WithUtcOffset, WithDate, WithTime]);
380
+ initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithTime, WithUtcOffset, WithDate]);
381
381
  initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
382
382
  initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
383
383
  initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
@@ -646,25 +646,28 @@ export declare namespace games.jass.logic.data.models.dealer {
646
646
  export declare namespace games.jass.logic.data.models.leagues {
647
647
  abstract class League {
648
648
  private constructor();
649
- static get BEGINNER(): games.jass.logic.data.models.leagues.League & {
650
- get name(): "BEGINNER";
649
+ static get beginner(): games.jass.logic.data.models.leagues.League & {
650
+ get name(): "beginner";
651
651
  get ordinal(): 0;
652
652
  };
653
- static get ROOKIE(): games.jass.logic.data.models.leagues.League & {
654
- get name(): "ROOKIE";
653
+ static get rookie(): games.jass.logic.data.models.leagues.League & {
654
+ get name(): "rookie";
655
655
  get ordinal(): 1;
656
656
  };
657
- static get ADVANCED(): games.jass.logic.data.models.leagues.League & {
658
- get name(): "ADVANCED";
657
+ static get advanced(): games.jass.logic.data.models.leagues.League & {
658
+ get name(): "advanced";
659
659
  get ordinal(): 2;
660
660
  };
661
- static get MASTER(): games.jass.logic.data.models.leagues.League & {
662
- get name(): "MASTER";
661
+ static get master(): games.jass.logic.data.models.leagues.League & {
662
+ get name(): "master";
663
663
  get ordinal(): 3;
664
664
  };
665
- get name(): "BEGINNER" | "ROOKIE" | "ADVANCED" | "MASTER";
665
+ get name(): "beginner" | "rookie" | "advanced" | "master";
666
666
  get ordinal(): 0 | 1 | 2 | 3;
667
+ getPreviousLeague(): Nullable<games.jass.logic.data.models.leagues.League>;
668
+ getNextLeague(): Nullable<games.jass.logic.data.models.leagues.League>;
667
669
  getMinRating(): number;
670
+ getMaxRating(maxUserRating: number): number;
668
671
  isEnabled(): boolean;
669
672
  static values(): Array<games.jass.logic.data.models.leagues.League>;
670
673
  static valueOf(value: string): games.jass.logic.data.models.leagues.League;
@@ -672,24 +675,29 @@ export declare namespace games.jass.logic.data.models.leagues {
672
675
  }
673
676
  export declare namespace games.jass.logic.data.models.leagues {
674
677
  class LeaguesConfig {
675
- constructor(initialRating: number, leagues: kotlin.collections.KtMap<games.jass.logic.data.models.leagues.League, games.jass.logic.data.models.leagues.LeagueInfo>);
678
+ constructor(initialUserRating: number, minUserRating: number, maxUserRating: number, leagues: Array<games.jass.logic.data.models.leagues.LeagueInfo>);
676
679
  get initialRating(): number;
677
- get leagues(): kotlin.collections.KtMap<games.jass.logic.data.models.leagues.League, games.jass.logic.data.models.leagues.LeagueInfo>;
678
- getLeagueByRating(rating: number, config?: games.jass.logic.data.models.leagues.LeaguesConfig): games.jass.logic.data.models.leagues.League;
679
- getLeagueInfoByRating(rating: number, config?: games.jass.logic.data.models.leagues.LeaguesConfig): any/* kotlin.Pair<games.jass.logic.data.models.leagues.League, games.jass.logic.data.models.leagues.LeagueInfo> */;
680
- copy(initialRating?: number, leagues?: kotlin.collections.KtMap<games.jass.logic.data.models.leagues.League, games.jass.logic.data.models.leagues.LeagueInfo>): games.jass.logic.data.models.leagues.LeaguesConfig;
681
- toString(): string;
682
- hashCode(): number;
680
+ get minUserRating(): number;
681
+ get maxUserRating(): number;
682
+ get leagues(): Array<games.jass.logic.data.models.leagues.LeagueInfo>;
683
+ getLeagueInfo(league: games.jass.logic.data.models.leagues.League): games.jass.logic.data.models.leagues.LeagueInfo;
684
+ getLeagueByRating(rating: number): games.jass.logic.data.models.leagues.League;
685
+ getLeagueInfoByRating(rating: number): games.jass.logic.data.models.leagues.LeagueInfo;
683
686
  equals(other: Nullable<any>): boolean;
687
+ hashCode(): number;
688
+ copy(initialUserRating?: number, minUserRating?: number, maxUserRating?: number, leagues?: Array<games.jass.logic.data.models.leagues.LeagueInfo>): games.jass.logic.data.models.leagues.LeaguesConfig;
689
+ toString(): string;
684
690
  static get Companion(): {
685
691
  defaultConfig(): games.jass.logic.data.models.leagues.LeaguesConfig;
686
692
  };
687
693
  }
688
694
  class LeagueInfo {
689
- constructor(minRating: number, enabled: boolean);
695
+ constructor(league: games.jass.logic.data.models.leagues.League, minRating: number, maxRating: number, enabled: boolean);
696
+ get league(): games.jass.logic.data.models.leagues.League;
690
697
  get minRating(): number;
698
+ get maxRating(): number;
691
699
  get enabled(): boolean;
692
- copy(minRating?: number, enabled?: boolean): games.jass.logic.data.models.leagues.LeagueInfo;
700
+ copy(league?: games.jass.logic.data.models.leagues.League, minRating?: number, maxRating?: number, enabled?: boolean): games.jass.logic.data.models.leagues.LeagueInfo;
693
701
  toString(): string;
694
702
  hashCode(): number;
695
703
  equals(other: Nullable<any>): boolean;
@@ -1447,11 +1455,11 @@ export declare namespace games.jass.logic.data.models.table.history {
1447
1455
  export declare namespace games.jass.logic.data.models.table.history {
1448
1456
  class RoundHistory {
1449
1457
  constructor(round: number, items: Array<games.jass.logic.data.models.table.history.RoundHistoryItem>, committed: Nullable<Array<string>>, contractState: Nullable<games.jass.logic.data.models.player.state.RoundContractState>, winners: Nullable<Array<string>>, createdAt: any/* kotlinx.datetime.Instant */);
1450
- get roundNumber(): number;
1458
+ get round(): number;
1451
1459
  get items(): Array<games.jass.logic.data.models.table.history.RoundHistoryItem>;
1452
- get roundCommitted(): Nullable<Array<string>>;
1453
- get roundContractState(): Nullable<games.jass.logic.data.models.player.state.RoundContractState>;
1454
- get roundWinners(): Nullable<Array<string>>;
1460
+ get committed(): Nullable<Array<string>>;
1461
+ get contractState(): Nullable<games.jass.logic.data.models.player.state.RoundContractState>;
1462
+ get winners(): Nullable<Array<string>>;
1455
1463
  get createdAt(): any/* kotlinx.datetime.Instant */;
1456
1464
  isFailedRoundForPlayer(playerId: string): boolean;
1457
1465
  get contractStateName(): Nullable<string>;
@@ -1792,6 +1800,36 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
1792
1800
  readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.MechanicAction["__doNotUseOrImplementIt"] & com.logic.redux.actions.validation.NotValidateIfGameFinishing["__doNotUseOrImplementIt"] & com.logic.redux.actions.validation.NotValidateIfGameFinished["__doNotUseOrImplementIt"];
1793
1801
  }
1794
1802
  }
1803
+ export declare interface GameHelper {
1804
+ filterLivePlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
1805
+ filterLiveDuringGamePlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
1806
+ filterBotPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
1807
+ filterRealPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
1808
+ getUserSocketId(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerId: string): Nullable<string>;
1809
+ getUserSocketIds(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>): Nullable<Array<string>>;
1810
+ createConfig(points: number, players: number, timeoutTimeMillis: number, rulesSetType: games.jass.logic.data.models.rules.RulesSetType, rules: any, isEnableChat: boolean, isBotsEnabled: boolean, isPrivate: boolean): games.jass.logic.data.models.table.config.Config;
1811
+ mapToRoomConfig(config: games.jass.logic.data.models.table.config.Config): models.RoomConfig;
1812
+ mapPoints(points: number): games.jass.logic.data.models.table.config.PointsMode;
1813
+ mapPlayers(players: number): games.jass.logic.data.models.table.config.PlayersMode;
1814
+ mapRules(rules: any): games.jass.logic.data.models.rules.Rules;
1815
+ prepareConfigObjectWithPagination(config: any): any;
1816
+ prepareConfigObject(config: any): any;
1817
+ isValidConfigObject(config: any): boolean;
1818
+ isValidConfig(players: number, points: number, timeoutTime: number, rulesPreset: string, rules: any): boolean;
1819
+ getRulesByType(rulesSetType: games.jass.logic.data.models.rules.RulesSetType): games.jass.logic.data.models.rules.Rules;
1820
+ getRulesByString(name: string): games.jass.logic.data.models.rules.Rules;
1821
+ mapRulesSetType(name: string): games.jass.logic.data.models.rules.RulesSetType;
1822
+ readonly __doNotUseOrImplementIt: {
1823
+ readonly GameHelper: unique symbol;
1824
+ };
1825
+ }
1826
+ export declare interface GameResources {
1827
+ createBotUser(playerId: string, existingNicknames?: Array<string>): com.logic.data.models.player.GameUserInfo;
1828
+ createBotUsers(playerIds: Array<string>): Array<com.logic.data.models.player.GameUserInfo>;
1829
+ readonly __doNotUseOrImplementIt: {
1830
+ readonly GameResources: unique symbol;
1831
+ };
1832
+ }
1795
1833
  export declare const ERROR: string;
1796
1834
  export declare const DEBUG: string;
1797
1835
  export declare const WARN: string;
@@ -1823,6 +1861,8 @@ export declare namespace di {
1823
1861
  constructor();
1824
1862
  get ratingHelper(): RatingHelper;
1825
1863
  get parserHelper(): ParserHelper;
1864
+ get gameHelper(): GameHelper;
1865
+ get gameResources(): GameResources;
1826
1866
  }
1827
1867
  }
1828
1868
  export declare namespace models {
@@ -2009,36 +2049,6 @@ export declare namespace games.jass.logic.server.domain {
2009
2049
  } & games.jass.logic.GameStoreContract["__doNotUseOrImplementIt"];
2010
2050
  }
2011
2051
  }
2012
- export declare interface GameHelper {
2013
- filterLivePlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
2014
- filterLiveDuringGamePlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
2015
- filterBotPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
2016
- filterRealPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
2017
- getUserSocketId(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerId: string): Nullable<string>;
2018
- getUserSocketIds(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>): Nullable<Array<string>>;
2019
- createConfig(points: number, players: number, timeoutTimeMillis: number, rulesSetType: games.jass.logic.data.models.rules.RulesSetType, rules: any, isEnableChat: boolean, isBotsEnabled: boolean, isPrivate: boolean): games.jass.logic.data.models.table.config.Config;
2020
- mapToRoomConfig(config: games.jass.logic.data.models.table.config.Config): models.RoomConfig;
2021
- mapPoints(points: number): games.jass.logic.data.models.table.config.PointsMode;
2022
- mapPlayers(players: number): games.jass.logic.data.models.table.config.PlayersMode;
2023
- mapRules(rules: any): games.jass.logic.data.models.rules.Rules;
2024
- prepareConfigObjectWithPagination(config: any): any;
2025
- prepareConfigObject(config: any): any;
2026
- isValidConfigObject(config: any): boolean;
2027
- isValidConfig(players: number, points: number, timeoutTime: number, rulesPreset: string, rules: any): boolean;
2028
- getRulesByType(rulesSetType: games.jass.logic.data.models.rules.RulesSetType): games.jass.logic.data.models.rules.Rules;
2029
- getRulesByString(name: string): games.jass.logic.data.models.rules.Rules;
2030
- mapRulesSetType(name: string): games.jass.logic.data.models.rules.RulesSetType;
2031
- readonly __doNotUseOrImplementIt: {
2032
- readonly GameHelper: unique symbol;
2033
- };
2034
- }
2035
- export declare interface GameResources {
2036
- createBotUser(playerId: string, existingNicknames?: Array<string>): com.logic.data.models.player.GameUserInfo;
2037
- createBotUsers(playerIds: Array<string>): Array<com.logic.data.models.player.GameUserInfo>;
2038
- readonly __doNotUseOrImplementIt: {
2039
- readonly GameResources: unique symbol;
2040
- };
2041
- }
2042
2052
  export declare interface GameEngineController {
2043
2053
  readonly parser: ParserHelper;
2044
2054
  readonly test: TestHelper;