raspberry_games_server_game_logic 1.8.258 → 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, dealerStrategy: Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>);
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;
@@ -1316,8 +1317,9 @@ export declare namespace games.jass.logic.data.models.table.config {
1316
1317
  get timeoutTimeMillis(): number;
1317
1318
  get isPrivate(): boolean;
1318
1319
  get dealerStrategy(): Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
1320
+ get mode(): games.jass.logic.data.models.table.config.RoomMode;
1319
1321
  get playerHandCardsSize(): number;
1320
- 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>): 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;
1321
1323
  toString(): string;
1322
1324
  hashCode(): number;
1323
1325
  equals(other: Nullable<any>): boolean;
@@ -1418,6 +1420,34 @@ export declare namespace games.jass.logic.data.models.table.config {
1418
1420
  } & any/* kotlinx.serialization.internal.SerializerFactory */;
1419
1421
  }
1420
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
+ }
1421
1451
  export declare namespace games.jass.logic.data.models.table.history {
1422
1452
  class GameHistory {
1423
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>);
@@ -1504,8 +1534,8 @@ export declare namespace games.jass.logic.domain.interactors.dealer {
1504
1534
  get name(): "STANDARD";
1505
1535
  get ordinal(): 0;
1506
1536
  };
1507
- static get HOST_STANDARD(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1508
- get name(): "HOST_STANDARD";
1537
+ static get REQUEST_HOST_STANDARD(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1538
+ get name(): "REQUEST_HOST_STANDARD";
1509
1539
  get ordinal(): 1;
1510
1540
  };
1511
1541
  static get RANDOM_ORG(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
@@ -1532,7 +1562,7 @@ export declare namespace games.jass.logic.domain.interactors.dealer {
1532
1562
  get name(): "EQUAL_HAND_BY_VALUE";
1533
1563
  get ordinal(): 7;
1534
1564
  };
1535
- get name(): "STANDARD" | "HOST_STANDARD" | "RANDOM_ORG" | "RANDOM_ORG_SIGNED" | "FAKE" | "BASED_ON_PREVIOUS" | "EQUAL_HAND_BY_POINTS" | "EQUAL_HAND_BY_VALUE";
1565
+ get name(): "STANDARD" | "REQUEST_HOST_STANDARD" | "RANDOM_ORG" | "RANDOM_ORG_SIGNED" | "FAKE" | "BASED_ON_PREVIOUS" | "EQUAL_HAND_BY_POINTS" | "EQUAL_HAND_BY_VALUE";
1536
1566
  get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
1537
1567
  shouldEqualiseHand(): boolean;
1538
1568
  static values(): Array<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
@@ -1666,11 +1696,12 @@ export declare namespace games.jass.logic.redux.actions.game {
1666
1696
  }
1667
1697
  export declare namespace games.jass.logic.redux.actions.mechanic {
1668
1698
  class GameToRoomTransition {
1669
- constructor(roomId: string, playerIds: kotlin.collections.KtList<string>);
1699
+ constructor(roomId: string, playerIds: kotlin.collections.KtList<string>, previousPlayers: Nullable<kotlin.collections.KtList<string>>);
1670
1700
  get roomId(): string;
1671
1701
  get playerIds(): kotlin.collections.KtList<string>;
1702
+ get previousPlayers(): Nullable<kotlin.collections.KtList<string>>;
1672
1703
  get playerIdsArray(): Array<string>;
1673
- 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;
1674
1705
  toString(): string;
1675
1706
  hashCode(): number;
1676
1707
  equals(other: Nullable<any>): boolean;
@@ -1814,7 +1845,7 @@ export declare interface GameHelper {
1814
1845
  filterRealPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
1815
1846
  getUserSocketId(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerId: string): Nullable<string>;
1816
1847
  getUserSocketIds(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>): Nullable<Array<string>>;
1817
- 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>): 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;
1818
1849
  mapToRoomConfig(config: games.jass.logic.data.models.table.config.Config): models.RoomConfig;
1819
1850
  mapPoints(points: number): games.jass.logic.data.models.table.config.PointsMode;
1820
1851
  mapPlayers(players: number): games.jass.logic.data.models.table.config.PlayersMode;
@@ -1891,7 +1922,7 @@ export declare namespace models {
1891
1922
  }
1892
1923
  export declare namespace games.jass.logic.server.domain {
1893
1924
  interface ServerGameEngineContract extends games.jass.logic.GameStoreContract {
1894
- roomOnCreate(roomId: string, gameCreatorId: string, config: games.jass.logic.data.models.table.config.Config, users: Array<com.logic.data.models.player.GameUserInfo>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameToRoomTransition>, spectators?: Array<com.logic.data.models.player.GameUserInfo>): void;
1925
+ roomOnCreate(roomId: string, gameCreatorId: string, config: games.jass.logic.data.models.table.config.Config, usersArray: Array<com.logic.data.models.player.GameUserInfo>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameToRoomTransition>, spectators?: Array<com.logic.data.models.player.GameUserInfo>): void;
1895
1926
  roomOnContinueFromRound(roomId: string, tableLite: games.jass.logic.data.models.table.JassTableLite): void;
1896
1927
  addSpectatorsToRoom(spectators: Array<com.logic.data.models.player.GameUserInfo>): void;
1897
1928
  removeSpectatorsFromRoom(spectators: Array<com.logic.data.models.player.GameUserInfo>): void;