raspberry_games_server_game_logic 1.8.253 → 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;
@@ -1809,7 +1814,7 @@ export declare interface GameHelper {
1809
1814
  filterRealPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
1810
1815
  getUserSocketId(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerId: string): Nullable<string>;
1811
1816
  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;
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;
1813
1818
  mapToRoomConfig(config: games.jass.logic.data.models.table.config.Config): models.RoomConfig;
1814
1819
  mapPoints(points: number): games.jass.logic.data.models.table.config.PointsMode;
1815
1820
  mapPlayers(players: number): games.jass.logic.data.models.table.config.PlayersMode;
@@ -1817,7 +1822,6 @@ export declare interface GameHelper {
1817
1822
  prepareConfigObjectWithPagination(config: any): any;
1818
1823
  prepareConfigObject(config: any): any;
1819
1824
  isValidConfigObject(config: any): boolean;
1820
- isValidConfig(players: number, points: number, timeoutTime: number, rulesPreset: string, rules: any): boolean;
1821
1825
  getRulesByType(rulesSetType: games.jass.logic.data.models.rules.RulesSetType): games.jass.logic.data.models.rules.Rules;
1822
1826
  getRulesByString(name: string): games.jass.logic.data.models.rules.Rules;
1823
1827
  mapRulesSetType(name: string): games.jass.logic.data.models.rules.RulesSetType;
@@ -1846,6 +1850,8 @@ export declare interface ParserHelper {
1846
1850
  encodeRoomConfig(config: models.RoomConfig): string;
1847
1851
  decodeTableLite(json: string): games.jass.logic.data.models.table.JassTableLite;
1848
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;
1849
1855
  readonly __doNotUseOrImplementIt: {
1850
1856
  readonly ParserHelper: unique symbol;
1851
1857
  };