game_client_logic_deb 1.8.253 → 1.8.260

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.
@@ -553,7 +553,7 @@ export declare namespace games.jass.logic.data.models {
553
553
  equals(other: Nullable<any>): boolean;
554
554
  static get Companion(): {
555
555
  getClientEngineTestMode(): games.jass.logic.data.models.EngineLogicConfig;
556
- getServerEngineMode(isProduction: boolean, supportBackwardActions?: boolean, validateFromClientActionTags?: boolean, openRoomIfFinished?: boolean, updateRating?: boolean, playerTimeoutFactorToFinishStep?: number): games.jass.logic.data.models.EngineLogicConfig;
556
+ getServerEngineMode(isProduction: boolean, roomMode: Nullable<string>, isPrivate: boolean, validateFromClientActionTags?: boolean, openRoomIfFinished?: boolean, playerTimeoutFactorToFinishStep?: number): games.jass.logic.data.models.EngineLogicConfig;
557
557
  };
558
558
  }
559
559
  }
@@ -1061,7 +1061,7 @@ export declare namespace games.jass.logic.data.models.scenes {
1061
1061
  }
1062
1062
  export declare namespace games.jass.logic.data.models.table {
1063
1063
  class JassTable {
1064
- constructor(id: string, version: string, createdAt: any/* kotlinx.datetime.Instant */, config: games.jass.logic.data.models.table.config.Config, players: kotlin.collections.KtList<com.logic.data.models.player.PlayerIdContract/* games.jass.logic.data.models.player.JassPlayer */>, spectators: kotlin.collections.KtList<com.logic.data.models.player.PlayerIdContract/* games.jass.logic.data.models.player.Spectator */>, sceneInfo: any/* games.jass.logic.data.models.table.scene.SceneInfo */, cardsOnTable: kotlin.collections.KtList<com.logic.data.models.player.PlayerIdContract/* games.jass.logic.data.models.table.bribes.CardOnTable */>, bribes: kotlin.collections.KtList<any/* games.jass.logic.data.models.table.cards.Bribe */>, cardDeck: Nullable<any>/* Nullable<games.jass.logic.data.models.table.cards.CardDeck> */, gameInfo: any/* games.jass.logic.data.models.table.GameInfo */, gameHistory: games.jass.logic.data.models.table.history.GameHistory);
1064
+ constructor(id: string, version: string, createdAt: any/* kotlinx.datetime.Instant */, config: games.jass.logic.data.models.table.config.Config, players: kotlin.collections.KtList<com.logic.data.models.player.PlayerIdContract/* games.jass.logic.data.models.player.JassPlayer */>, spectators: kotlin.collections.KtList<com.logic.data.models.player.PlayerIdContract/* games.jass.logic.data.models.player.Spectator */>, sceneInfo: any/* games.jass.logic.data.models.table.scene.SceneInfo */, cardsOnTable: kotlin.collections.KtList<com.logic.data.models.player.PlayerIdContract/* games.jass.logic.data.models.table.bribes.CardOnTable */>, bribes: kotlin.collections.KtList<any/* games.jass.logic.data.models.table.cards.Bribe */>, cardDeck: Nullable<any>/* Nullable<games.jass.logic.data.models.table.cards.CardDeck> */, requestedCardDecks: kotlin.collections.KtList<any/* games.jass.logic.data.models.table.cards.CardDeck */>, gameInfo: any/* games.jass.logic.data.models.table.GameInfo */, gameHistory: games.jass.logic.data.models.table.history.GameHistory);
1065
1065
  get id(): string;
1066
1066
  get version(): string;
1067
1067
  get createdAt(): any/* kotlinx.datetime.Instant */;
@@ -1072,6 +1072,7 @@ export declare namespace games.jass.logic.data.models.table {
1072
1072
  get cardsOnTable(): kotlin.collections.KtList<com.logic.data.models.player.PlayerIdContract/* games.jass.logic.data.models.table.bribes.CardOnTable */>;
1073
1073
  get bribes(): kotlin.collections.KtList<any/* games.jass.logic.data.models.table.cards.Bribe */>;
1074
1074
  get cardDeck(): Nullable<any>/* Nullable<games.jass.logic.data.models.table.cards.CardDeck> */;
1075
+ get requestedCardDecks(): kotlin.collections.KtList<any/* games.jass.logic.data.models.table.cards.CardDeck */>;
1075
1076
  get gameInfo(): any/* games.jass.logic.data.models.table.GameInfo */;
1076
1077
  get gameHistory(): games.jass.logic.data.models.table.history.GameHistory;
1077
1078
  get gameId(): string;
@@ -1084,7 +1085,7 @@ export declare namespace games.jass.logic.data.models.table {
1084
1085
  get currentTrump(): Nullable<any>/* Nullable<io.raspberryapps.card_game.core.data.models.cards.Suit> */;
1085
1086
  get isGameFinished(): boolean;
1086
1087
  toString(): string;
1087
- copy(id?: string, version?: string, createdAt?: any/* kotlinx.datetime.Instant */, config?: games.jass.logic.data.models.table.config.Config, players?: kotlin.collections.KtList<com.logic.data.models.player.PlayerIdContract/* games.jass.logic.data.models.player.JassPlayer */>, spectators?: kotlin.collections.KtList<com.logic.data.models.player.PlayerIdContract/* games.jass.logic.data.models.player.Spectator */>, sceneInfo?: any/* games.jass.logic.data.models.table.scene.SceneInfo */, cardsOnTable?: kotlin.collections.KtList<com.logic.data.models.player.PlayerIdContract/* games.jass.logic.data.models.table.bribes.CardOnTable */>, bribes?: kotlin.collections.KtList<any/* games.jass.logic.data.models.table.cards.Bribe */>, cardDeck?: Nullable<any>/* Nullable<games.jass.logic.data.models.table.cards.CardDeck> */, gameInfo?: any/* games.jass.logic.data.models.table.GameInfo */, gameHistory?: games.jass.logic.data.models.table.history.GameHistory): games.jass.logic.data.models.table.JassTable;
1088
+ copy(id?: string, version?: string, createdAt?: any/* kotlinx.datetime.Instant */, config?: games.jass.logic.data.models.table.config.Config, players?: kotlin.collections.KtList<com.logic.data.models.player.PlayerIdContract/* games.jass.logic.data.models.player.JassPlayer */>, spectators?: kotlin.collections.KtList<com.logic.data.models.player.PlayerIdContract/* games.jass.logic.data.models.player.Spectator */>, sceneInfo?: any/* games.jass.logic.data.models.table.scene.SceneInfo */, cardsOnTable?: kotlin.collections.KtList<com.logic.data.models.player.PlayerIdContract/* games.jass.logic.data.models.table.bribes.CardOnTable */>, bribes?: kotlin.collections.KtList<any/* games.jass.logic.data.models.table.cards.Bribe */>, cardDeck?: Nullable<any>/* Nullable<games.jass.logic.data.models.table.cards.CardDeck> */, requestedCardDecks?: kotlin.collections.KtList<any/* games.jass.logic.data.models.table.cards.CardDeck */>, gameInfo?: any/* games.jass.logic.data.models.table.GameInfo */, gameHistory?: games.jass.logic.data.models.table.history.GameHistory): games.jass.logic.data.models.table.JassTable;
1088
1089
  hashCode(): number;
1089
1090
  equals(other: Nullable<any>): boolean;
1090
1091
  static get Companion(): {
@@ -1307,7 +1308,7 @@ export declare namespace games.jass.logic.data.models.table.config {
1307
1308
  }
1308
1309
  export declare namespace games.jass.logic.data.models.table.config {
1309
1310
  class Config {
1310
- constructor(rules: games.jass.logic.data.models.rules.Rules, rulesSetType: games.jass.logic.data.models.rules.RulesSetType, options: games.jass.logic.data.models.table.config.Options, playersMode: games.jass.logic.data.models.table.config.PlayersMode, pointsMode: games.jass.logic.data.models.table.config.PointsMode, timeoutTimeMillis: number, isPrivate: boolean);
1311
+ constructor(rules: games.jass.logic.data.models.rules.Rules, rulesSetType: games.jass.logic.data.models.rules.RulesSetType, options: games.jass.logic.data.models.table.config.Options, playersMode: games.jass.logic.data.models.table.config.PlayersMode, pointsMode: games.jass.logic.data.models.table.config.PointsMode, timeoutTimeMillis: number, isPrivate: boolean, dealerStrategy: Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>, mode: games.jass.logic.data.models.table.config.RoomMode);
1311
1312
  get rules(): games.jass.logic.data.models.rules.Rules;
1312
1313
  get rulesSetType(): games.jass.logic.data.models.rules.RulesSetType;
1313
1314
  get options(): games.jass.logic.data.models.table.config.Options;
@@ -1315,8 +1316,10 @@ export declare namespace games.jass.logic.data.models.table.config {
1315
1316
  get pointsMode(): games.jass.logic.data.models.table.config.PointsMode;
1316
1317
  get timeoutTimeMillis(): number;
1317
1318
  get isPrivate(): boolean;
1319
+ get dealerStrategy(): Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
1320
+ get mode(): games.jass.logic.data.models.table.config.RoomMode;
1318
1321
  get playerHandCardsSize(): number;
1319
- copy(rules?: games.jass.logic.data.models.rules.Rules, rulesSetType?: games.jass.logic.data.models.rules.RulesSetType, options?: games.jass.logic.data.models.table.config.Options, playersMode?: games.jass.logic.data.models.table.config.PlayersMode, pointsMode?: games.jass.logic.data.models.table.config.PointsMode, timeoutTimeMillis?: number, isPrivate?: boolean): games.jass.logic.data.models.table.config.Config;
1322
+ copy(rules?: games.jass.logic.data.models.rules.Rules, rulesSetType?: games.jass.logic.data.models.rules.RulesSetType, options?: games.jass.logic.data.models.table.config.Options, playersMode?: games.jass.logic.data.models.table.config.PlayersMode, pointsMode?: games.jass.logic.data.models.table.config.PointsMode, timeoutTimeMillis?: number, isPrivate?: boolean, dealerStrategy?: Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>, mode?: games.jass.logic.data.models.table.config.RoomMode): games.jass.logic.data.models.table.config.Config;
1320
1323
  toString(): string;
1321
1324
  hashCode(): number;
1322
1325
  equals(other: Nullable<any>): boolean;
@@ -1417,6 +1420,34 @@ export declare namespace games.jass.logic.data.models.table.config {
1417
1420
  } & any/* kotlinx.serialization.internal.SerializerFactory */;
1418
1421
  }
1419
1422
  }
1423
+ export declare namespace games.jass.logic.data.models.table.config {
1424
+ abstract class RoomMode {
1425
+ private constructor();
1426
+ static get DEFAULT(): games.jass.logic.data.models.table.config.RoomMode & {
1427
+ get name(): "DEFAULT";
1428
+ get ordinal(): 0;
1429
+ };
1430
+ static get REVENGE(): games.jass.logic.data.models.table.config.RoomMode & {
1431
+ get name(): "REVENGE";
1432
+ get ordinal(): 1;
1433
+ };
1434
+ static get QUICK(): games.jass.logic.data.models.table.config.RoomMode & {
1435
+ get name(): "QUICK";
1436
+ get ordinal(): 2;
1437
+ };
1438
+ static get LEAGUE(): games.jass.logic.data.models.table.config.RoomMode & {
1439
+ get name(): "LEAGUE";
1440
+ get ordinal(): 3;
1441
+ };
1442
+ get name(): "DEFAULT" | "REVENGE" | "QUICK" | "LEAGUE";
1443
+ get ordinal(): 0 | 1 | 2 | 3;
1444
+ get shufflePlayers(): boolean;
1445
+ get hasRatingSupport(): boolean;
1446
+ get isEnableChoosePartnerScreen(): boolean;
1447
+ static values(): Array<games.jass.logic.data.models.table.config.RoomMode>;
1448
+ static valueOf(value: string): games.jass.logic.data.models.table.config.RoomMode;
1449
+ }
1450
+ }
1420
1451
  export declare namespace games.jass.logic.data.models.table.history {
1421
1452
  class GameHistory {
1422
1453
  constructor(gameId: string, createdAt: any/* kotlinx.datetime.Instant */, rounds: Array<games.jass.logic.data.models.table.history.RoundHistory>, gameWinners: Nullable<Array<string>>, metadata: Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>);
@@ -1499,36 +1530,40 @@ export declare namespace games.jass.logic.data.models.table.round {
1499
1530
  export declare namespace games.jass.logic.domain.interactors.dealer {
1500
1531
  abstract class DealerStrategy {
1501
1532
  private constructor();
1502
- static get FAKE(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1503
- get name(): "FAKE";
1533
+ static get STANDARD(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1534
+ get name(): "STANDARD";
1504
1535
  get ordinal(): 0;
1505
1536
  };
1506
- static get BASED_ON_PREVIOUS(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1507
- get name(): "BASED_ON_PREVIOUS";
1537
+ static get REQUEST_HOST_STANDARD(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1538
+ get name(): "REQUEST_HOST_STANDARD";
1508
1539
  get ordinal(): 1;
1509
1540
  };
1510
- static get EQUAL_HAND_BY_POINTS(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1511
- get name(): "EQUAL_HAND_BY_POINTS";
1541
+ static get RANDOM_ORG(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1542
+ get name(): "RANDOM_ORG";
1512
1543
  get ordinal(): 2;
1513
1544
  };
1514
- static get EQUAL_HAND_BY_VALUE(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1515
- get name(): "EQUAL_HAND_BY_VALUE";
1545
+ static get RANDOM_ORG_SIGNED(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1546
+ get name(): "RANDOM_ORG_SIGNED";
1516
1547
  get ordinal(): 3;
1517
1548
  };
1518
- static get RANDOM(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1519
- get name(): "RANDOM";
1549
+ static get FAKE(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1550
+ get name(): "FAKE";
1520
1551
  get ordinal(): 4;
1521
1552
  };
1522
- static get RANDOM_ORG(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1523
- get name(): "RANDOM_ORG";
1553
+ static get BASED_ON_PREVIOUS(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1554
+ get name(): "BASED_ON_PREVIOUS";
1524
1555
  get ordinal(): 5;
1525
1556
  };
1526
- static get RANDOM_ORG_SIGNED(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1527
- get name(): "RANDOM_ORG_SIGNED";
1557
+ static get EQUAL_HAND_BY_POINTS(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1558
+ get name(): "EQUAL_HAND_BY_POINTS";
1528
1559
  get ordinal(): 6;
1529
1560
  };
1530
- get name(): "FAKE" | "BASED_ON_PREVIOUS" | "EQUAL_HAND_BY_POINTS" | "EQUAL_HAND_BY_VALUE" | "RANDOM" | "RANDOM_ORG" | "RANDOM_ORG_SIGNED";
1531
- get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
1561
+ static get EQUAL_HAND_BY_VALUE(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1562
+ get name(): "EQUAL_HAND_BY_VALUE";
1563
+ get ordinal(): 7;
1564
+ };
1565
+ get name(): "STANDARD" | "REQUEST_HOST_STANDARD" | "RANDOM_ORG" | "RANDOM_ORG_SIGNED" | "FAKE" | "BASED_ON_PREVIOUS" | "EQUAL_HAND_BY_POINTS" | "EQUAL_HAND_BY_VALUE";
1566
+ get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
1532
1567
  shouldEqualiseHand(): boolean;
1533
1568
  static values(): Array<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
1534
1569
  static valueOf(value: string): games.jass.logic.domain.interactors.dealer.DealerStrategy;
@@ -1661,11 +1696,12 @@ export declare namespace games.jass.logic.redux.actions.game {
1661
1696
  }
1662
1697
  export declare namespace games.jass.logic.redux.actions.mechanic {
1663
1698
  class GameToRoomTransition {
1664
- constructor(roomId: string, playerIds: kotlin.collections.KtList<string>);
1699
+ constructor(roomId: string, playerIds: kotlin.collections.KtList<string>, previousPlayers: Nullable<kotlin.collections.KtList<string>>);
1665
1700
  get roomId(): string;
1666
1701
  get playerIds(): kotlin.collections.KtList<string>;
1702
+ get previousPlayers(): Nullable<kotlin.collections.KtList<string>>;
1667
1703
  get playerIdsArray(): Array<string>;
1668
- copy(roomId?: string, playerIds?: kotlin.collections.KtList<string>): games.jass.logic.redux.actions.mechanic.GameToRoomTransition;
1704
+ copy(roomId?: string, playerIds?: kotlin.collections.KtList<string>, previousPlayers?: Nullable<kotlin.collections.KtList<string>>): games.jass.logic.redux.actions.mechanic.GameToRoomTransition;
1669
1705
  toString(): string;
1670
1706
  hashCode(): number;
1671
1707
  equals(other: Nullable<any>): boolean;
@@ -1809,7 +1845,7 @@ export declare interface GameHelper {
1809
1845
  filterRealPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
1810
1846
  getUserSocketId(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerId: string): Nullable<string>;
1811
1847
  getUserSocketIds(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>): Nullable<Array<string>>;
1812
- 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;
1848
+ createConfig(points: number, players: number, timeoutTimeMillis: number, rulesSetType: games.jass.logic.data.models.rules.RulesSetType, rules: any, isEnableChat: boolean, isBotsEnabled: boolean, isPrivate: boolean, dealerStrategy?: Nullable<string>, mode?: Nullable<string>): games.jass.logic.data.models.table.config.Config;
1813
1849
  mapToRoomConfig(config: games.jass.logic.data.models.table.config.Config): models.RoomConfig;
1814
1850
  mapPoints(points: number): games.jass.logic.data.models.table.config.PointsMode;
1815
1851
  mapPlayers(players: number): games.jass.logic.data.models.table.config.PlayersMode;
@@ -1817,7 +1853,6 @@ export declare interface GameHelper {
1817
1853
  prepareConfigObjectWithPagination(config: any): any;
1818
1854
  prepareConfigObject(config: any): any;
1819
1855
  isValidConfigObject(config: any): boolean;
1820
- isValidConfig(players: number, points: number, timeoutTime: number, rulesPreset: string, rules: any): boolean;
1821
1856
  getRulesByType(rulesSetType: games.jass.logic.data.models.rules.RulesSetType): games.jass.logic.data.models.rules.Rules;
1822
1857
  getRulesByString(name: string): games.jass.logic.data.models.rules.Rules;
1823
1858
  mapRulesSetType(name: string): games.jass.logic.data.models.rules.RulesSetType;
@@ -1846,6 +1881,8 @@ export declare interface ParserHelper {
1846
1881
  encodeRoomConfig(config: models.RoomConfig): string;
1847
1882
  decodeTableLite(json: string): games.jass.logic.data.models.table.JassTableLite;
1848
1883
  decodeFullGameHistoryToTableLite(json: string, round: Nullable<number>): games.jass.logic.data.models.table.JassTableLite;
1884
+ encodeGameToRoomTransition(transition: games.jass.logic.redux.actions.mechanic.GameToRoomTransition): string;
1885
+ decodeGameToRoomTransition(json: string): games.jass.logic.redux.actions.mechanic.GameToRoomTransition;
1849
1886
  readonly __doNotUseOrImplementIt: {
1850
1887
  readonly ParserHelper: unique symbol;
1851
1888
  };