game_client_logic_deb 1.8.246 → 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.
Files changed (35) hide show
  1. package/Kosi-Kaverit-kaverit.js +58 -58
  2. package/Kosi-Kodein-kodein-di.js +518 -518
  3. package/Kotlin-DateTime-library-kotlinx-datetime.js +1333 -1333
  4. package/Logic_Debertz-core.js +1370 -1331
  5. package/Logic_Debertz-core.js.map +1 -1
  6. package/Logic_Debertz-engine.js +14009 -12729
  7. package/Logic_Debertz-engine.js.map +1 -1
  8. package/Logic_Debertz-game_client.d.ts +63 -23
  9. package/Logic_Debertz-game_client.js +3155 -3155
  10. package/Logic_Debertz-game_client.js.map +1 -1
  11. package/kotlin-kotlin-stdlib.js +496 -450
  12. package/kotlin-kotlin-stdlib.js.map +1 -1
  13. package/kotlinx-atomicfu.js +13 -13
  14. package/kotlinx-coroutines-core.js +2165 -2165
  15. package/kotlinx-io-kotlinx-io-core.js +311 -311
  16. package/kotlinx-serialization-kotlinx-serialization-core.js +1756 -1756
  17. package/kotlinx-serialization-kotlinx-serialization-json.js +1320 -1320
  18. package/ktor-ktor-client-content-negotiation.js +133 -133
  19. package/ktor-ktor-client-core.js +1537 -1537
  20. package/ktor-ktor-client-logging.js +282 -282
  21. package/ktor-ktor-events.js +6 -6
  22. package/ktor-ktor-http.js +600 -600
  23. package/ktor-ktor-io.js +1257 -1257
  24. package/ktor-ktor-serialization-kotlinx-json.js +7 -7
  25. package/ktor-ktor-serialization-kotlinx.js +136 -136
  26. package/ktor-ktor-serialization.js +62 -62
  27. package/ktor-ktor-utils.js +492 -492
  28. package/ktor-ktor-websockets.js +42 -42
  29. package/package.json +1 -1
  30. package/raspberry-cardgame-lib-core.js +159 -159
  31. package/raspberry-cardgame-lib-logger.js +88 -88
  32. package/raspberry-cardgame-lib-random.js +784 -784
  33. package/raspberry-cardgame-lib-random.js.map +1 -1
  34. package/secure-random-secure-random.js +5 -5
  35. package/uuid.js +12 -12
@@ -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;
@@ -1805,7 +1843,7 @@ export declare interface ParserHelper {
1805
1843
  encodeGameMetadata(metadata: games.jass.logic.data.models.table.history.GameHistoryMetadata): string;
1806
1844
  encodeRoomConfig(config: models.RoomConfig): string;
1807
1845
  decodeTableLite(json: string): games.jass.logic.data.models.table.JassTableLite;
1808
- decodeFullGameHistoryToTableLite(json: string): games.jass.logic.data.models.table.JassTableLite;
1846
+ decodeFullGameHistoryToTableLite(json: string, round: Nullable<number>): games.jass.logic.data.models.table.JassTableLite;
1809
1847
  readonly __doNotUseOrImplementIt: {
1810
1848
  readonly ParserHelper: unique symbol;
1811
1849
  };
@@ -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 {