client_plugin_logic_deb 1.8.310 → 1.8.314

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 (41) hide show
  1. package/Kosi-Kaverit-kaverit.js +76 -76
  2. package/Kosi-Kodein-kodein-di.js +639 -639
  3. package/Kotlin-DateTime-library-kotlinx-datetime.js +1492 -1492
  4. package/Logic_Debertz-client_plugin.d.ts +55 -15
  5. package/Logic_Debertz-client_plugin.js +5325 -4972
  6. package/Logic_Debertz-client_plugin.js.map +1 -1
  7. package/Logic_Debertz-core.js +2792 -2959
  8. package/Logic_Debertz-core.js.map +1 -1
  9. package/Logic_Debertz-engine.js +17675 -17566
  10. package/Logic_Debertz-engine.js.map +1 -1
  11. package/Logic_Debertz-game_client.js +14354 -12511
  12. package/Logic_Debertz-game_client.js.map +1 -1
  13. package/Logic_Debertz-game_server.js +1610 -1508
  14. package/Logic_Debertz-game_server.js.map +1 -1
  15. package/kotlin-kotlin-stdlib.js +2818 -2589
  16. package/kotlin-kotlin-stdlib.js.map +1 -1
  17. package/kotlinx-atomicfu.js +24 -24
  18. package/kotlinx-coroutines-core.js +3122 -3122
  19. package/kotlinx-coroutines-core.js.map +1 -1
  20. package/kotlinx-io-kotlinx-io-core.js +357 -357
  21. package/kotlinx-serialization-kotlinx-serialization-core.js +2009 -2009
  22. package/kotlinx-serialization-kotlinx-serialization-json.js +1543 -1543
  23. package/ktor-ktor-client-content-negotiation.js +215 -215
  24. package/ktor-ktor-client-core.js +2511 -2511
  25. package/ktor-ktor-client-logging.js +548 -548
  26. package/ktor-ktor-events.js +10 -10
  27. package/ktor-ktor-http.js +747 -747
  28. package/ktor-ktor-io.js +1653 -1653
  29. package/ktor-ktor-serialization-kotlinx-json.js +7 -7
  30. package/ktor-ktor-serialization-kotlinx.js +270 -270
  31. package/ktor-ktor-serialization.js +127 -127
  32. package/ktor-ktor-utils.js +730 -730
  33. package/ktor-ktor-websockets.js +57 -57
  34. package/package.json +1 -1
  35. package/raspberry-cardgame-lib-core.js +313 -309
  36. package/raspberry-cardgame-lib-core.js.map +1 -1
  37. package/raspberry-cardgame-lib-logger.js +98 -98
  38. package/raspberry-cardgame-lib-random.js +1053 -1036
  39. package/raspberry-cardgame-lib-random.js.map +1 -1
  40. package/secure-random-secure-random.js +15 -15
  41. package/uuid.js +31 -31
@@ -970,7 +970,8 @@ export declare namespace games.jass.logic.data.models.player.state {
970
970
  }
971
971
  export declare namespace games.jass.logic.data.models.rules {
972
972
  class Rules {
973
- 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);
973
+ constructor(name: Nullable<string>, 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);
974
+ get name(): Nullable<string>;
974
975
  get playerWhoChooseSuitGoFirst(): boolean;
975
976
  get winnerShuffleCards(): boolean;
976
977
  get playWithoutLiabilities(): boolean;
@@ -1000,7 +1001,7 @@ export declare namespace games.jass.logic.data.models.rules {
1000
1001
  toString(): string;
1001
1002
  equals(other: Nullable<any>): boolean;
1002
1003
  hashCode(): number;
1003
- 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;
1004
+ copy(name?: Nullable<string>, 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;
1004
1005
  static get Companion(): {
1005
1006
  get HAND_CARDS_INITIAL(): number;
1006
1007
  get HAND_CARDS_FINAL(): number;
@@ -1240,32 +1241,32 @@ export declare namespace games.jass.logic.data.models.table.combinations {
1240
1241
  get name(): "SEVEN_TRUMP";
1241
1242
  get ordinal(): 5;
1242
1243
  };
1243
- static get FOUR_ACES(): games.jass.logic.data.models.table.combinations.CombinationType & {
1244
- get name(): "FOUR_ACES";
1244
+ static get FOUR_SEVENS(): games.jass.logic.data.models.table.combinations.CombinationType & {
1245
+ get name(): "FOUR_SEVENS";
1245
1246
  get ordinal(): 6;
1246
1247
  };
1247
- static get FOUR_KINGS(): games.jass.logic.data.models.table.combinations.CombinationType & {
1248
- get name(): "FOUR_KINGS";
1248
+ static get FOUR_NINES(): games.jass.logic.data.models.table.combinations.CombinationType & {
1249
+ get name(): "FOUR_NINES";
1249
1250
  get ordinal(): 7;
1250
1251
  };
1251
- static get FOUR_DAMES(): games.jass.logic.data.models.table.combinations.CombinationType & {
1252
- get name(): "FOUR_DAMES";
1252
+ static get FOUR_TENS(): games.jass.logic.data.models.table.combinations.CombinationType & {
1253
+ get name(): "FOUR_TENS";
1253
1254
  get ordinal(): 8;
1254
1255
  };
1255
1256
  static get FOUR_JACKS(): games.jass.logic.data.models.table.combinations.CombinationType & {
1256
1257
  get name(): "FOUR_JACKS";
1257
1258
  get ordinal(): 9;
1258
1259
  };
1259
- static get FOUR_TENS(): games.jass.logic.data.models.table.combinations.CombinationType & {
1260
- get name(): "FOUR_TENS";
1260
+ static get FOUR_QUEENS(): games.jass.logic.data.models.table.combinations.CombinationType & {
1261
+ get name(): "FOUR_QUEENS";
1261
1262
  get ordinal(): 10;
1262
1263
  };
1263
- static get FOUR_NINES(): games.jass.logic.data.models.table.combinations.CombinationType & {
1264
- get name(): "FOUR_NINES";
1264
+ static get FOUR_KINGS(): games.jass.logic.data.models.table.combinations.CombinationType & {
1265
+ get name(): "FOUR_KINGS";
1265
1266
  get ordinal(): 11;
1266
1267
  };
1267
- static get FOUR_SEVENS(): games.jass.logic.data.models.table.combinations.CombinationType & {
1268
- get name(): "FOUR_SEVENS";
1268
+ static get FOUR_ACES(): games.jass.logic.data.models.table.combinations.CombinationType & {
1269
+ get name(): "FOUR_ACES";
1269
1270
  get ordinal(): 12;
1270
1271
  };
1271
1272
  static get FINE_NO_BRIBES(): games.jass.logic.data.models.table.combinations.CombinationType & {
@@ -1288,7 +1289,7 @@ export declare namespace games.jass.logic.data.models.table.combinations {
1288
1289
  get name(): "BONUS_CONTROVERSIAL_CONTRACT";
1289
1290
  get ordinal(): 17;
1290
1291
  };
1291
- get name(): "BELA" | "THREE_IN_ROW" | "FOUR_IN_ROW" | "FIVE_IN_ROW" | "SEVEN_IN_ROW" | "SEVEN_TRUMP" | "FOUR_ACES" | "FOUR_KINGS" | "FOUR_DAMES" | "FOUR_JACKS" | "FOUR_TENS" | "FOUR_NINES" | "FOUR_SEVENS" | "FINE_NO_BRIBES" | "FINE_THIRD_FAILED_CONTRACT" | "BONUS_LAST_BRIBE" | "BONUS_FAILED_CONTRACT" | "BONUS_CONTROVERSIAL_CONTRACT";
1292
+ get name(): "BELA" | "THREE_IN_ROW" | "FOUR_IN_ROW" | "FIVE_IN_ROW" | "SEVEN_IN_ROW" | "SEVEN_TRUMP" | "FOUR_SEVENS" | "FOUR_NINES" | "FOUR_TENS" | "FOUR_JACKS" | "FOUR_QUEENS" | "FOUR_KINGS" | "FOUR_ACES" | "FINE_NO_BRIBES" | "FINE_THIRD_FAILED_CONTRACT" | "BONUS_LAST_BRIBE" | "BONUS_FAILED_CONTRACT" | "BONUS_CONTROVERSIAL_CONTRACT";
1292
1293
  get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17;
1293
1294
  static values(): Array<games.jass.logic.data.models.table.combinations.CombinationType>;
1294
1295
  static valueOf(value: string): games.jass.logic.data.models.table.combinations.CombinationType;
@@ -1358,6 +1359,7 @@ export declare namespace games.jass.logic.data.models.table.config {
1358
1359
  get dealerStrategy(): Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
1359
1360
  get league(): Nullable<games.jass.logic.data.models.leagues.League>;
1360
1361
  get mode(): games.jass.logic.data.models.table.config.RoomMode;
1362
+ getDealerStrategyOrDefault(dealerConfig: games.jass.logic.data.models.DealerConfig): games.jass.logic.domain.interactors.dealer.DealerStrategy;
1361
1363
  get playerHandCardsSize(): number;
1362
1364
  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>, league?: Nullable<games.jass.logic.data.models.leagues.League>, mode?: games.jass.logic.data.models.table.config.RoomMode): games.jass.logic.data.models.table.config.Config;
1363
1365
  toString(): string;
@@ -1641,9 +1643,13 @@ export declare namespace games.jass.logic.domain.interactors.dealer {
1641
1643
  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
1644
  get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
1643
1645
  shouldEqualiseHand(): boolean;
1646
+ isFake(): boolean;
1644
1647
  isRandomOrg(): boolean;
1645
1648
  static values(): Array<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
1646
1649
  static valueOf(value: string): games.jass.logic.domain.interactors.dealer.DealerStrategy;
1650
+ static get Companion(): {
1651
+ default(): games.jass.logic.domain.interactors.dealer.DealerStrategy;
1652
+ };
1647
1653
  }
1648
1654
  }
1649
1655
  export declare namespace games.jass.logic.redux.actions {
@@ -2156,6 +2162,20 @@ export declare interface GameClientEngineController {
2156
2162
  };
2157
2163
  }
2158
2164
  export declare function createGameClientController(loggerCallback: (p0: string, p1: Nullable<string>, p2: string, p3: Nullable<Error>, p4: Nullable<any>) => void): GameClientEngineController;
2165
+ export declare namespace games.jass.logic.server.data.models.config {
2166
+ class ServerConfig {
2167
+ constructor(fromRound: Nullable<number>, canStartNewGame: boolean);
2168
+ get fromRound(): Nullable<number>;
2169
+ get canStartNewGame(): boolean;
2170
+ copy(fromRound?: Nullable<number>, canStartNewGame?: boolean): games.jass.logic.server.data.models.config.ServerConfig;
2171
+ toString(): string;
2172
+ hashCode(): number;
2173
+ equals(other: Nullable<any>): boolean;
2174
+ static get Companion(): {
2175
+ initial(fromRound: Nullable<number>): games.jass.logic.server.data.models.config.ServerConfig;
2176
+ };
2177
+ }
2178
+ }
2159
2179
  export declare namespace games.jass.logic.server.data.models.state {
2160
2180
  interface ServerStateUpdate {
2161
2181
  readonly __doNotUseOrImplementIt: {
@@ -2205,10 +2225,24 @@ export declare namespace games.jass.logic.server.domain {
2205
2225
  } & games.jass.logic.GameStoreContract["__doNotUseOrImplementIt"];
2206
2226
  }
2207
2227
  }
2228
+ export declare namespace games.jass.logic.server.redux.state {
2229
+ class ServerStatePayload /* implements games.jass.logic.redux.AppStatePayload */ {
2230
+ constructor(config: games.jass.logic.server.data.models.config.ServerConfig);
2231
+ get config(): games.jass.logic.server.data.models.config.ServerConfig;
2232
+ copy(config?: games.jass.logic.server.data.models.config.ServerConfig): games.jass.logic.server.redux.state.ServerStatePayload;
2233
+ toString(): string;
2234
+ hashCode(): number;
2235
+ equals(other: Nullable<any>): boolean;
2236
+ static get Companion(): {
2237
+ initial(config?: games.jass.logic.server.data.models.config.ServerConfig): games.jass.logic.server.redux.state.ServerStatePayload;
2238
+ };
2239
+ }
2240
+ }
2208
2241
  export declare interface GameEngineController {
2209
2242
  readonly parser: ParserHelper;
2210
2243
  readonly test: TestHelper;
2211
2244
  readonly helper: GameHelper;
2245
+ readonly serverHelper: GameServerHelper;
2212
2246
  readonly resources: GameResources;
2213
2247
  readonly randomPoolProvider: any/* games.raspberry.card_game.random.data.providers.RandomPoolProvider */;
2214
2248
  setEnableLogger(enabled: boolean): void;
@@ -2219,6 +2253,12 @@ export declare interface GameEngineController {
2219
2253
  };
2220
2254
  }
2221
2255
  export declare function createGameServerController(loggerCallback: (p0: string, p1: Nullable<string>, p2: string, p3: Nullable<Error>, p4: Nullable<any>) => void, randomOrgConfig?: games.raspberry.card_game.random.data.models.RandomOrgConfig): GameEngineController;
2256
+ export declare interface GameServerHelper {
2257
+ getServerConfig(state: any/* games.jass.logic.redux.AppState */): games.jass.logic.server.data.models.config.ServerConfig;
2258
+ readonly __doNotUseOrImplementIt: {
2259
+ readonly GameServerHelper: unique symbol;
2260
+ };
2261
+ }
2222
2262
  export declare interface TestHelper {
2223
2263
  getPlayerAnswer(table: games.jass.logic.data.models.table.JassTable, playerId: string, botConfig: games.jass.logic.data.models.EngineBotConfig): games.jass.logic.redux.actions.client.from.FromClientAction;
2224
2264
  getPlayerAnswerFromClientAction(table: games.jass.logic.data.models.table.JassTable, currentPlayerId: string, action: games.jass.logic.redux.actions.client.to.ToClientAction, botConfig: games.jass.logic.data.models.EngineBotConfig): Nullable<games.jass.logic.redux.actions.client.from.FromClientAction>;