game_client_logic_deb 1.8.289 → 1.8.304

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 (37) hide show
  1. package/Kosi-Kaverit-kaverit.js +71 -71
  2. package/Kosi-Kodein-kodein-di.js +629 -629
  3. package/Kotlin-DateTime-library-kotlinx-datetime.js +1443 -1443
  4. package/Logic_Debertz-core.js +1844 -1994
  5. package/Logic_Debertz-core.js.map +1 -1
  6. package/Logic_Debertz-engine.js +17958 -20737
  7. package/Logic_Debertz-engine.js.map +1 -1
  8. package/Logic_Debertz-game_client.d.ts +52 -18
  9. package/Logic_Debertz-game_client.js +4918 -4804
  10. package/Logic_Debertz-game_client.js.map +1 -1
  11. package/kotlin-kotlin-stdlib.js +2286 -2105
  12. package/kotlin-kotlin-stdlib.js.map +1 -1
  13. package/kotlinx-atomicfu.js +25 -25
  14. package/kotlinx-coroutines-core.js +2833 -2827
  15. package/kotlinx-coroutines-core.js.map +1 -1
  16. package/kotlinx-io-kotlinx-io-core.js +354 -354
  17. package/kotlinx-serialization-kotlinx-serialization-core.js +1882 -1882
  18. package/kotlinx-serialization-kotlinx-serialization-json.js +1517 -1517
  19. package/ktor-ktor-client-content-negotiation.js +213 -213
  20. package/ktor-ktor-client-core.js +2494 -2494
  21. package/ktor-ktor-client-logging.js +547 -547
  22. package/ktor-ktor-events.js +11 -11
  23. package/ktor-ktor-http.js +721 -721
  24. package/ktor-ktor-io.js +1624 -1624
  25. package/ktor-ktor-serialization-kotlinx-json.js +7 -7
  26. package/ktor-ktor-serialization-kotlinx.js +261 -261
  27. package/ktor-ktor-serialization.js +129 -129
  28. package/ktor-ktor-utils.js +699 -699
  29. package/ktor-ktor-websockets.js +57 -57
  30. package/package.json +1 -1
  31. package/raspberry-cardgame-lib-core.js +262 -247
  32. package/raspberry-cardgame-lib-core.js.map +1 -1
  33. package/raspberry-cardgame-lib-logger.js +97 -97
  34. package/raspberry-cardgame-lib-random.js +1060 -965
  35. package/raspberry-cardgame-lib-random.js.map +1 -1
  36. package/secure-random-secure-random.js +17 -17
  37. package/uuid.js +23 -23
@@ -292,12 +292,16 @@ export declare namespace com.logic.data.models {
292
292
  get name(): "WRONG_PLAYER_TURN";
293
293
  get ordinal(): 3;
294
294
  };
295
+ static get DUPLICATED_PLAYER_ANSWER(): com.logic.data.models.GameErrorReason.Reason & {
296
+ get name(): "DUPLICATED_PLAYER_ANSWER";
297
+ get ordinal(): 4;
298
+ };
295
299
  static get PLAYER_DISCONNECTED(): com.logic.data.models.GameErrorReason.Reason & {
296
300
  get name(): "PLAYER_DISCONNECTED";
297
- get ordinal(): 4;
301
+ get ordinal(): 5;
298
302
  };
299
- get name(): "SERVER_ERROR" | "INTERNAL_ERROR" | "GAME_NOT_EXISTS" | "WRONG_PLAYER_TURN" | "PLAYER_DISCONNECTED";
300
- get ordinal(): 0 | 1 | 2 | 3 | 4;
303
+ get name(): "SERVER_ERROR" | "INTERNAL_ERROR" | "GAME_NOT_EXISTS" | "WRONG_PLAYER_TURN" | "DUPLICATED_PLAYER_ANSWER" | "PLAYER_DISCONNECTED";
304
+ get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
301
305
  static values(): Array<com.logic.data.models.GameErrorReason.Reason>;
302
306
  static valueOf(value: string): com.logic.data.models.GameErrorReason.Reason;
303
307
  static get Companion(): {
@@ -509,13 +513,14 @@ export declare namespace games.jass.logic {
509
513
  }
510
514
  export declare namespace games.jass.logic.data.models {
511
515
  class DealerConfig {
512
- constructor(dealerStrategy?: games.jass.logic.domain.interactors.dealer.DealerStrategy, isBotsAreHappy?: boolean, cards?: Nullable<Array<number>>);
516
+ constructor(dealerStrategy?: games.jass.logic.domain.interactors.dealer.DealerStrategy, isBotsAreHappy?: boolean, cards?: Nullable<Array<number>>, shouldDisplayDealerStrategy?: boolean);
513
517
  get dealerStrategy(): games.jass.logic.domain.interactors.dealer.DealerStrategy;
514
518
  get isBotsAreHappy(): boolean;
515
519
  get cards(): Nullable<Array<number>>;
520
+ get shouldDisplayDealerStrategy(): boolean;
516
521
  equals(other: Nullable<any>): boolean;
517
522
  hashCode(): number;
518
- copy(dealerStrategy?: games.jass.logic.domain.interactors.dealer.DealerStrategy, isBotsAreHappy?: boolean, cards?: Nullable<Array<number>>): games.jass.logic.data.models.DealerConfig;
523
+ copy(dealerStrategy?: games.jass.logic.domain.interactors.dealer.DealerStrategy, isBotsAreHappy?: boolean, cards?: Nullable<Array<number>>, shouldDisplayDealerStrategy?: boolean): games.jass.logic.data.models.DealerConfig;
519
524
  toString(): string;
520
525
  static get Companion(): {
521
526
  getFromServerConfig(dealerStrategy?: string, cardsJson?: Nullable<string>): games.jass.logic.data.models.DealerConfig;
@@ -966,8 +971,7 @@ export declare namespace games.jass.logic.data.models.player.state {
966
971
  }
967
972
  export declare namespace games.jass.logic.data.models.rules {
968
973
  class Rules {
969
- constructor(needToPutHigherTrump: boolean, playerWhoChooseSuitGoFirst: boolean, winnerShuffleCards: boolean, playWithoutLiabilities: boolean, trumpCardGoToPlayerWhoShuffleCards: boolean, dealerInitialCardsCount: number, dealerFinalCardsCount: number, dealerCounterClockwise: boolean, contractTypes: Array<games.jass.logic.data.models.player.state.RoundContractType>, bidTypes: Array<games.jass.logic.data.models.player.bids.BidType>, combinationsWithFirstCard: Array<games.jass.logic.data.models.table.combinations.CombinationType>, protectBella: boolean, oneTryToProtectBella: boolean, enableFourSevensCombination: boolean, enableTrumpSevenCombination: boolean, enableTrumpSevenCombinationAfterDistribution: boolean, checkTrumpCombination: boolean, checkOnlyTrumpDebertz: boolean, distributePoints: boolean, pointsDistributeMode: games.jass.logic.data.models.player.points.PointsDistributeMode, enableFineAfterThirdFailedContract: boolean, fineAfterThirdFailedContract: number, enableFineIfNoBribes: boolean, fineIfNoBribes: number);
970
- get needToPutHigherTrump(): boolean;
974
+ constructor(playerWhoChooseSuitGoFirst: boolean, winnerShuffleCards: boolean, playWithoutLiabilities: boolean, trumpCardGoToPlayerWhoShuffleCards: boolean, dealerInitialCardsCount: number, dealerFinalCardsCount: number, dealerCounterClockwise: boolean, contractTypes: Array<games.jass.logic.data.models.player.state.RoundContractType>, bidTypes: Array<games.jass.logic.data.models.player.bids.BidType>, needToPutHigherTrump: boolean, trumpCardStepPartnerMode: games.jass.logic.data.models.rules.TrumpCardStepPartnerMode, combinationsWithFirstCard: Array<games.jass.logic.data.models.table.combinations.CombinationType>, protectBella: boolean, oneTryToProtectBella: boolean, enableFourSevensCombination: boolean, enableTrumpSevenCombination: boolean, enableTrumpSevenCombinationAfterDistribution: boolean, checkTrumpCombination: boolean, checkOnlyTrumpDebertz: boolean, distributePoints: boolean, pointsDistributeMode: games.jass.logic.data.models.player.points.PointsDistributeMode, enableFineAfterThirdFailedContract: boolean, fineAfterThirdFailedContract: number, enableFineIfNoBribes: boolean, fineIfNoBribes: number);
971
975
  get playerWhoChooseSuitGoFirst(): boolean;
972
976
  get winnerShuffleCards(): boolean;
973
977
  get playWithoutLiabilities(): boolean;
@@ -977,6 +981,8 @@ export declare namespace games.jass.logic.data.models.rules {
977
981
  get dealerCounterClockwise(): boolean;
978
982
  get contractTypes(): Array<games.jass.logic.data.models.player.state.RoundContractType>;
979
983
  get bidTypes(): Array<games.jass.logic.data.models.player.bids.BidType>;
984
+ get needToPutHigherTrump(): boolean;
985
+ get trumpCardStepPartnerMode(): games.jass.logic.data.models.rules.TrumpCardStepPartnerMode;
980
986
  get combinationsWithFirstCard(): Array<games.jass.logic.data.models.table.combinations.CombinationType>;
981
987
  get protectBella(): boolean;
982
988
  get oneTryToProtectBella(): boolean;
@@ -995,7 +1001,7 @@ export declare namespace games.jass.logic.data.models.rules {
995
1001
  toString(): string;
996
1002
  equals(other: Nullable<any>): boolean;
997
1003
  hashCode(): number;
998
- copy(needToPutHigherTrump?: boolean, playerWhoChooseSuitGoFirst?: boolean, winnerShuffleCards?: boolean, playWithoutLiabilities?: boolean, trumpCardGoToPlayerWhoShuffleCards?: boolean, dealerInitialCardsCount?: number, dealerFinalCardsCount?: number, dealerCounterClockwise?: boolean, contractTypes?: Array<games.jass.logic.data.models.player.state.RoundContractType>, bidTypes?: Array<games.jass.logic.data.models.player.bids.BidType>, combinationsWithFirstCard?: Array<games.jass.logic.data.models.table.combinations.CombinationType>, protectBella?: boolean, oneTryToProtectBella?: boolean, enableFourSevensCombination?: boolean, enableTrumpSevenCombination?: boolean, enableTrumpSevenCombinationAfterDistribution?: boolean, checkTrumpCombination?: boolean, checkOnlyTrumpDebertz?: boolean, distributePoints?: boolean, pointsDistributeMode?: games.jass.logic.data.models.player.points.PointsDistributeMode, enableFineAfterThirdFailedContract?: boolean, fineAfterThirdFailedContract?: number, enableFineIfNoBribes?: boolean, fineIfNoBribes?: number): games.jass.logic.data.models.rules.Rules;
1004
+ copy(playerWhoChooseSuitGoFirst?: boolean, winnerShuffleCards?: boolean, playWithoutLiabilities?: boolean, trumpCardGoToPlayerWhoShuffleCards?: boolean, dealerInitialCardsCount?: number, dealerFinalCardsCount?: number, dealerCounterClockwise?: boolean, contractTypes?: Array<games.jass.logic.data.models.player.state.RoundContractType>, bidTypes?: Array<games.jass.logic.data.models.player.bids.BidType>, needToPutHigherTrump?: boolean, trumpCardStepPartnerMode?: games.jass.logic.data.models.rules.TrumpCardStepPartnerMode, combinationsWithFirstCard?: Array<games.jass.logic.data.models.table.combinations.CombinationType>, protectBella?: boolean, oneTryToProtectBella?: boolean, enableFourSevensCombination?: boolean, enableTrumpSevenCombination?: boolean, enableTrumpSevenCombinationAfterDistribution?: boolean, checkTrumpCombination?: boolean, checkOnlyTrumpDebertz?: boolean, distributePoints?: boolean, pointsDistributeMode?: games.jass.logic.data.models.player.points.PointsDistributeMode, enableFineAfterThirdFailedContract?: boolean, fineAfterThirdFailedContract?: number, enableFineIfNoBribes?: boolean, fineIfNoBribes?: number): games.jass.logic.data.models.rules.Rules;
999
1005
  static get Companion(): {
1000
1006
  get HAND_CARDS_INITIAL(): number;
1001
1007
  get HAND_CARDS_FINAL(): number;
@@ -1045,6 +1051,27 @@ export declare namespace games.jass.logic.data.models.rules {
1045
1051
  static valueOf(value: string): games.jass.logic.data.models.rules.RulesSetType;
1046
1052
  }
1047
1053
  }
1054
+ export declare namespace games.jass.logic.data.models.rules {
1055
+ abstract class TrumpCardStepPartnerMode {
1056
+ private constructor();
1057
+ static get ANY_CARD(): games.jass.logic.data.models.rules.TrumpCardStepPartnerMode & {
1058
+ get name(): "ANY_CARD";
1059
+ get ordinal(): 0;
1060
+ };
1061
+ static get HIGHER_TRUMP_CARD(): games.jass.logic.data.models.rules.TrumpCardStepPartnerMode & {
1062
+ get name(): "HIGHER_TRUMP_CARD";
1063
+ get ordinal(): 1;
1064
+ };
1065
+ static get ANY_TRUMP_CARD(): games.jass.logic.data.models.rules.TrumpCardStepPartnerMode & {
1066
+ get name(): "ANY_TRUMP_CARD";
1067
+ get ordinal(): 2;
1068
+ };
1069
+ get name(): "ANY_CARD" | "HIGHER_TRUMP_CARD" | "ANY_TRUMP_CARD";
1070
+ get ordinal(): 0 | 1 | 2;
1071
+ static values(): Array<games.jass.logic.data.models.rules.TrumpCardStepPartnerMode>;
1072
+ static valueOf(value: string): games.jass.logic.data.models.rules.TrumpCardStepPartnerMode;
1073
+ }
1074
+ }
1048
1075
  export declare namespace games.jass.logic.data.models.scenes {
1049
1076
  interface ActData {
1050
1077
  readonly actId: string;
@@ -1134,10 +1161,10 @@ export declare namespace games.jass.logic.data.models.table {
1134
1161
  }
1135
1162
  export declare namespace games.jass.logic.data.models.table {
1136
1163
  class TableStateWithActions {
1137
- constructor(table: games.jass.logic.data.models.table.JassTable, actions: kotlin.collections.KtList<games.jass.logic.redux.actions.mechanic.MechanicAction>);
1164
+ constructor(table: games.jass.logic.data.models.table.JassTable, actions: kotlin.collections.KtList<games.jass.logic.redux.actions.client.from.FromClientAction>);
1138
1165
  get table(): games.jass.logic.data.models.table.JassTable;
1139
- get actions(): kotlin.collections.KtList<games.jass.logic.redux.actions.mechanic.MechanicAction>;
1140
- copy(table?: games.jass.logic.data.models.table.JassTable, actions?: kotlin.collections.KtList<games.jass.logic.redux.actions.mechanic.MechanicAction>): games.jass.logic.data.models.table.TableStateWithActions;
1166
+ get actions(): kotlin.collections.KtList<games.jass.logic.redux.actions.client.from.FromClientAction>;
1167
+ copy(table?: games.jass.logic.data.models.table.JassTable, actions?: kotlin.collections.KtList<games.jass.logic.redux.actions.client.from.FromClientAction>): games.jass.logic.data.models.table.TableStateWithActions;
1141
1168
  toString(): string;
1142
1169
  hashCode(): number;
1143
1170
  equals(other: Nullable<any>): boolean;
@@ -1599,16 +1626,20 @@ export declare namespace games.jass.logic.domain.interactors.dealer {
1599
1626
  get name(): "BASED_ON_PREVIOUS";
1600
1627
  get ordinal(): 5;
1601
1628
  };
1629
+ static get OFFLINE_SHUFFLE_SIMULATION(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1630
+ get name(): "OFFLINE_SHUFFLE_SIMULATION";
1631
+ get ordinal(): 6;
1632
+ };
1602
1633
  static get EQUAL_HAND_BY_POINTS(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1603
1634
  get name(): "EQUAL_HAND_BY_POINTS";
1604
- get ordinal(): 6;
1635
+ get ordinal(): 7;
1605
1636
  };
1606
1637
  static get EQUAL_HAND_BY_VALUE(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1607
1638
  get name(): "EQUAL_HAND_BY_VALUE";
1608
- get ordinal(): 7;
1639
+ get ordinal(): 8;
1609
1640
  };
1610
- get name(): "STANDARD" | "REQUEST_HOST_STANDARD" | "RANDOM_ORG" | "RANDOM_ORG_SIGNED" | "FAKE" | "BASED_ON_PREVIOUS" | "EQUAL_HAND_BY_POINTS" | "EQUAL_HAND_BY_VALUE";
1611
- get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
1641
+ get name(): "STANDARD" | "REQUEST_HOST_STANDARD" | "RANDOM_ORG" | "RANDOM_ORG_SIGNED" | "FAKE" | "BASED_ON_PREVIOUS" | "OFFLINE_SHUFFLE_SIMULATION" | "EQUAL_HAND_BY_POINTS" | "EQUAL_HAND_BY_VALUE";
1642
+ get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
1612
1643
  shouldEqualiseHand(): boolean;
1613
1644
  static values(): Array<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
1614
1645
  static valueOf(value: string): games.jass.logic.domain.interactors.dealer.DealerStrategy;
@@ -1694,18 +1725,20 @@ export declare namespace games.jass.logic.redux.actions.game {
1694
1725
  readonly __doNotUseOrImplementIt: com.logic.redux.store.definitions.Action["__doNotUseOrImplementIt"];
1695
1726
  }
1696
1727
  class RoundStartedAction extends games.jass.logic.redux.actions.game.GameAction {
1697
- constructor(id: string, gameId: string, roundNumber: number, players: Array<string>, isFirstRound: boolean, gameNumber: number, gameHistory: games.jass.logic.data.models.table.history.GameHistory);
1728
+ constructor(id: string, gameId: string, roundNumber: number, players: Array<string>, isFirstRound: boolean, gameNumber: number, roomMode: games.jass.logic.data.models.table.config.RoomMode, gameHistory: games.jass.logic.data.models.table.history.GameHistory);
1698
1729
  get id(): string;
1699
1730
  get gameId(): string;
1700
1731
  get partyNumber(): number;
1701
1732
  get players(): Array<string>;
1702
1733
  get isFirstRound(): boolean;
1703
1734
  get gameNumber(): number;
1735
+ get roomMode(): games.jass.logic.data.models.table.config.RoomMode;
1704
1736
  get gameHistory(): games.jass.logic.data.models.table.history.GameHistory;
1737
+ get roomModeString(): string;
1705
1738
  toString(): string;
1706
1739
  equals(other: Nullable<any>): boolean;
1707
1740
  hashCode(): number;
1708
- copy(id?: string, gameId?: string, roundNumber?: number, players?: Array<string>, isFirstRound?: boolean, gameNumber?: number, gameHistory?: games.jass.logic.data.models.table.history.GameHistory): games.jass.logic.redux.actions.game.RoundStartedAction;
1741
+ copy(id?: string, gameId?: string, roundNumber?: number, players?: Array<string>, isFirstRound?: boolean, gameNumber?: number, roomMode?: games.jass.logic.data.models.table.config.RoomMode, gameHistory?: games.jass.logic.data.models.table.history.GameHistory): games.jass.logic.redux.actions.game.RoundStartedAction;
1709
1742
  get actionTag(): string;
1710
1743
  }
1711
1744
  class RoundEndedAction extends games.jass.logic.redux.actions.game.GameAction {
@@ -1765,12 +1798,12 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
1765
1798
  get roomId(): string;
1766
1799
  get playerIds(): Nullable<kotlin.collections.KtList<string>>;
1767
1800
  get previousPlayers(): Nullable<kotlin.collections.KtList<string>>;
1801
+ get isEnableChoosePartnerScreen(): boolean;
1768
1802
  get readyPlayerIdsArray(): Array<string>;
1769
1803
  copy(roomId?: string, playerIds?: Nullable<kotlin.collections.KtList<string>>, previousPlayers?: Nullable<kotlin.collections.KtList<string>>): games.jass.logic.redux.actions.mechanic.GameToRoomTransition;
1770
1804
  toString(): string;
1771
1805
  hashCode(): number;
1772
1806
  equals(other: Nullable<any>): boolean;
1773
- get isEnableChoosePartnerScreen(): boolean;
1774
1807
  readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.GameTransition["__doNotUseOrImplementIt"];
1775
1808
  }
1776
1809
  }
@@ -2086,6 +2119,7 @@ export declare namespace games.jass.logic.client.domain.mechanic {
2086
2119
  tutorialPassed(skipped: boolean): void;
2087
2120
  playerExit(): void;
2088
2121
  error(error: Nullable<any>/* Nullable<games.jass.logic.data.models.table.error.ErrorState> */): void;
2122
+ waitingForConnection(): void;
2089
2123
  observeGameHistoryEvents(): any/* kotlinx.coroutines.flow.Flow<games.jass.logic.client.data.models.vm.HistoryViewModel> */;
2090
2124
  readonly __doNotUseOrImplementIt: {
2091
2125
  readonly "games.jass.logic.client.domain.mechanic.GameMechanic": unique symbol;