raspberry_games_server_game_logic 1.8.250 → 1.8.258

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.
@@ -1307,7 +1307,7 @@ export declare namespace games.jass.logic.data.models.table.config {
1307
1307
  }
1308
1308
  export declare namespace games.jass.logic.data.models.table.config {
1309
1309
  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);
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
1311
  get rules(): games.jass.logic.data.models.rules.Rules;
1312
1312
  get rulesSetType(): games.jass.logic.data.models.rules.RulesSetType;
1313
1313
  get options(): games.jass.logic.data.models.table.config.Options;
@@ -1315,8 +1315,9 @@ export declare namespace games.jass.logic.data.models.table.config {
1315
1315
  get pointsMode(): games.jass.logic.data.models.table.config.PointsMode;
1316
1316
  get timeoutTimeMillis(): number;
1317
1317
  get isPrivate(): boolean;
1318
+ get dealerStrategy(): Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
1318
1319
  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;
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;
1320
1321
  toString(): string;
1321
1322
  hashCode(): number;
1322
1323
  equals(other: Nullable<any>): boolean;
@@ -1499,36 +1500,40 @@ export declare namespace games.jass.logic.data.models.table.round {
1499
1500
  export declare namespace games.jass.logic.domain.interactors.dealer {
1500
1501
  abstract class DealerStrategy {
1501
1502
  private constructor();
1502
- static get FAKE(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1503
- get name(): "FAKE";
1503
+ static get STANDARD(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1504
+ get name(): "STANDARD";
1504
1505
  get ordinal(): 0;
1505
1506
  };
1506
- static get BASED_ON_PREVIOUS(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1507
- get name(): "BASED_ON_PREVIOUS";
1507
+ static get HOST_STANDARD(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1508
+ get name(): "HOST_STANDARD";
1508
1509
  get ordinal(): 1;
1509
1510
  };
1510
- static get EQUAL_HAND_BY_POINTS(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1511
- get name(): "EQUAL_HAND_BY_POINTS";
1511
+ static get RANDOM_ORG(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1512
+ get name(): "RANDOM_ORG";
1512
1513
  get ordinal(): 2;
1513
1514
  };
1514
- static get EQUAL_HAND_BY_VALUE(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1515
- get name(): "EQUAL_HAND_BY_VALUE";
1515
+ static get RANDOM_ORG_SIGNED(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1516
+ get name(): "RANDOM_ORG_SIGNED";
1516
1517
  get ordinal(): 3;
1517
1518
  };
1518
- static get RANDOM(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1519
- get name(): "RANDOM";
1519
+ static get FAKE(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1520
+ get name(): "FAKE";
1520
1521
  get ordinal(): 4;
1521
1522
  };
1522
- static get RANDOM_ORG(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1523
- get name(): "RANDOM_ORG";
1523
+ static get BASED_ON_PREVIOUS(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1524
+ get name(): "BASED_ON_PREVIOUS";
1524
1525
  get ordinal(): 5;
1525
1526
  };
1526
- static get RANDOM_ORG_SIGNED(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1527
- get name(): "RANDOM_ORG_SIGNED";
1527
+ static get EQUAL_HAND_BY_POINTS(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1528
+ get name(): "EQUAL_HAND_BY_POINTS";
1528
1529
  get ordinal(): 6;
1529
1530
  };
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;
1531
+ static get EQUAL_HAND_BY_VALUE(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1532
+ get name(): "EQUAL_HAND_BY_VALUE";
1533
+ get ordinal(): 7;
1534
+ };
1535
+ get name(): "STANDARD" | "HOST_STANDARD" | "RANDOM_ORG" | "RANDOM_ORG_SIGNED" | "FAKE" | "BASED_ON_PREVIOUS" | "EQUAL_HAND_BY_POINTS" | "EQUAL_HAND_BY_VALUE";
1536
+ get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
1532
1537
  shouldEqualiseHand(): boolean;
1533
1538
  static values(): Array<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
1534
1539
  static valueOf(value: string): games.jass.logic.domain.interactors.dealer.DealerStrategy;
@@ -1737,12 +1742,13 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
1737
1742
  };
1738
1743
  }
1739
1744
  class FinishGameMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements com.logic.redux.actions.validation.NotValidateIfGameFinishing, games.jass.logic.redux.actions.mechanic.TerminatedAction {
1740
- constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, aid?: Nullable<string>);
1745
+ constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, aid?: Nullable<string>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameToRoomTransition>);
1741
1746
  get reason(): com.logic.data.models.TerminationGameReason;
1742
1747
  get isGameFinished(): boolean;
1743
1748
  get aid(): Nullable<string>;
1744
- copy(reason?: com.logic.data.models.TerminationGameReason, isGameFinished?: boolean, aid?: Nullable<string>): games.jass.logic.redux.actions.mechanic.FinishGameMechanicAction;
1749
+ get transition(): Nullable<games.jass.logic.redux.actions.mechanic.GameToRoomTransition>;
1745
1750
  toString(): string;
1751
+ copy(reason?: com.logic.data.models.TerminationGameReason, isGameFinished?: boolean, aid?: Nullable<string>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameToRoomTransition>): games.jass.logic.redux.actions.mechanic.FinishGameMechanicAction;
1746
1752
  hashCode(): number;
1747
1753
  equals(other: Nullable<any>): boolean;
1748
1754
  get actionTag(): string;
@@ -1776,6 +1782,7 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
1776
1782
  interface TerminatedAction extends com.logic.redux.store.definitions.Action {
1777
1783
  readonly reason: com.logic.data.models.TerminationGameReason;
1778
1784
  readonly isGameFinished: boolean;
1785
+ readonly transition: Nullable<games.jass.logic.redux.actions.mechanic.GameToRoomTransition>;
1779
1786
  readonly __doNotUseOrImplementIt: {
1780
1787
  readonly "games.jass.logic.redux.actions.mechanic.TerminatedAction": unique symbol;
1781
1788
  } & com.logic.redux.store.definitions.Action["__doNotUseOrImplementIt"];
@@ -1807,7 +1814,7 @@ export declare interface GameHelper {
1807
1814
  filterRealPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
1808
1815
  getUserSocketId(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerId: string): Nullable<string>;
1809
1816
  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;
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;
1811
1818
  mapToRoomConfig(config: games.jass.logic.data.models.table.config.Config): models.RoomConfig;
1812
1819
  mapPoints(points: number): games.jass.logic.data.models.table.config.PointsMode;
1813
1820
  mapPlayers(players: number): games.jass.logic.data.models.table.config.PlayersMode;
@@ -1815,7 +1822,6 @@ export declare interface GameHelper {
1815
1822
  prepareConfigObjectWithPagination(config: any): any;
1816
1823
  prepareConfigObject(config: any): any;
1817
1824
  isValidConfigObject(config: any): boolean;
1818
- isValidConfig(players: number, points: number, timeoutTime: number, rulesPreset: string, rules: any): boolean;
1819
1825
  getRulesByType(rulesSetType: games.jass.logic.data.models.rules.RulesSetType): games.jass.logic.data.models.rules.Rules;
1820
1826
  getRulesByString(name: string): games.jass.logic.data.models.rules.Rules;
1821
1827
  mapRulesSetType(name: string): games.jass.logic.data.models.rules.RulesSetType;
@@ -1844,6 +1850,8 @@ export declare interface ParserHelper {
1844
1850
  encodeRoomConfig(config: models.RoomConfig): string;
1845
1851
  decodeTableLite(json: string): games.jass.logic.data.models.table.JassTableLite;
1846
1852
  decodeFullGameHistoryToTableLite(json: string, round: Nullable<number>): games.jass.logic.data.models.table.JassTableLite;
1853
+ encodeGameToRoomTransition(transition: games.jass.logic.redux.actions.mechanic.GameToRoomTransition): string;
1854
+ decodeGameToRoomTransition(json: string): games.jass.logic.redux.actions.mechanic.GameToRoomTransition;
1847
1855
  readonly __doNotUseOrImplementIt: {
1848
1856
  readonly ParserHelper: unique symbol;
1849
1857
  };
@@ -1883,7 +1891,7 @@ export declare namespace models {
1883
1891
  }
1884
1892
  export declare namespace games.jass.logic.server.domain {
1885
1893
  interface ServerGameEngineContract extends games.jass.logic.GameStoreContract {
1886
- roomOnCreate(roomId: string, gameCreatorId: string, config: games.jass.logic.data.models.table.config.Config, users: Array<com.logic.data.models.player.GameUserInfo>, spectators?: Array<com.logic.data.models.player.GameUserInfo>): void;
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;
1887
1895
  roomOnContinueFromRound(roomId: string, tableLite: games.jass.logic.data.models.table.JassTableLite): void;
1888
1896
  addSpectatorsToRoom(spectators: Array<com.logic.data.models.player.GameUserInfo>): void;
1889
1897
  removeSpectatorsFromRoom(spectators: Array<com.logic.data.models.player.GameUserInfo>): void;