game_client_logic_deb 1.8.245 → 1.8.247
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.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +7 -6
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +948 -893
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +14305 -11812
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +103 -3
- package/Logic_Debertz-game_client.js +2374 -2402
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +24 -24
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
- package/raspberry-cardgame-lib-random.js +1 -1
|
@@ -643,6 +643,58 @@ export declare namespace games.jass.logic.data.models.dealer {
|
|
|
643
643
|
equals(other: Nullable<any>): boolean;
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
+
export declare namespace games.jass.logic.data.models.leagues {
|
|
647
|
+
abstract class League {
|
|
648
|
+
private constructor();
|
|
649
|
+
static get BEGINNER(): games.jass.logic.data.models.leagues.League & {
|
|
650
|
+
get name(): "BEGINNER";
|
|
651
|
+
get ordinal(): 0;
|
|
652
|
+
};
|
|
653
|
+
static get ROOKIE(): games.jass.logic.data.models.leagues.League & {
|
|
654
|
+
get name(): "ROOKIE";
|
|
655
|
+
get ordinal(): 1;
|
|
656
|
+
};
|
|
657
|
+
static get ADVANCED(): games.jass.logic.data.models.leagues.League & {
|
|
658
|
+
get name(): "ADVANCED";
|
|
659
|
+
get ordinal(): 2;
|
|
660
|
+
};
|
|
661
|
+
static get MASTER(): games.jass.logic.data.models.leagues.League & {
|
|
662
|
+
get name(): "MASTER";
|
|
663
|
+
get ordinal(): 3;
|
|
664
|
+
};
|
|
665
|
+
get name(): "BEGINNER" | "ROOKIE" | "ADVANCED" | "MASTER";
|
|
666
|
+
get ordinal(): 0 | 1 | 2 | 3;
|
|
667
|
+
getMinRating(): number;
|
|
668
|
+
isEnabled(): boolean;
|
|
669
|
+
static values(): Array<games.jass.logic.data.models.leagues.League>;
|
|
670
|
+
static valueOf(value: string): games.jass.logic.data.models.leagues.League;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
export declare namespace games.jass.logic.data.models.leagues {
|
|
674
|
+
class LeaguesConfig {
|
|
675
|
+
constructor(initialRating: number, leagues: kotlin.collections.KtMap<games.jass.logic.data.models.leagues.League, games.jass.logic.data.models.leagues.LeagueInfo>);
|
|
676
|
+
get initialRating(): number;
|
|
677
|
+
get leagues(): kotlin.collections.KtMap<games.jass.logic.data.models.leagues.League, games.jass.logic.data.models.leagues.LeagueInfo>;
|
|
678
|
+
getLeagueByRating(rating: number, config?: games.jass.logic.data.models.leagues.LeaguesConfig): games.jass.logic.data.models.leagues.League;
|
|
679
|
+
getLeagueInfoByRating(rating: number, config?: games.jass.logic.data.models.leagues.LeaguesConfig): any/* kotlin.Pair<games.jass.logic.data.models.leagues.League, games.jass.logic.data.models.leagues.LeagueInfo> */;
|
|
680
|
+
copy(initialRating?: number, leagues?: kotlin.collections.KtMap<games.jass.logic.data.models.leagues.League, games.jass.logic.data.models.leagues.LeagueInfo>): games.jass.logic.data.models.leagues.LeaguesConfig;
|
|
681
|
+
toString(): string;
|
|
682
|
+
hashCode(): number;
|
|
683
|
+
equals(other: Nullable<any>): boolean;
|
|
684
|
+
static get Companion(): {
|
|
685
|
+
defaultConfig(): games.jass.logic.data.models.leagues.LeaguesConfig;
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
class LeagueInfo {
|
|
689
|
+
constructor(minRating: number, enabled: boolean);
|
|
690
|
+
get minRating(): number;
|
|
691
|
+
get enabled(): boolean;
|
|
692
|
+
copy(minRating?: number, enabled?: boolean): games.jass.logic.data.models.leagues.LeagueInfo;
|
|
693
|
+
toString(): string;
|
|
694
|
+
hashCode(): number;
|
|
695
|
+
equals(other: Nullable<any>): boolean;
|
|
696
|
+
}
|
|
697
|
+
}
|
|
646
698
|
export declare namespace games.jass.logic.data.models.messages.combinatios {
|
|
647
699
|
abstract class CombinationReason /* implements kotlin.Comparable<games.jass.logic.data.models.messages.combinatios.CombinationReason> */ {
|
|
648
700
|
private constructor();
|
|
@@ -680,6 +732,18 @@ export declare namespace games.jass.logic.data.models.messages.combinatios {
|
|
|
680
732
|
static valueOf(value: string): games.jass.logic.data.models.messages.combinatios.CombinationReason;
|
|
681
733
|
}
|
|
682
734
|
}
|
|
735
|
+
export declare namespace games.jass.logic.data.models.player {
|
|
736
|
+
class JassPlayerLite {
|
|
737
|
+
constructor(userInfo: com.logic.data.models.player.GameUserInfo, options: any/* games.jass.logic.data.models.player.options.PlayerOptions */, points: any/* games.jass.logic.data.models.player.points.PlayerPoints */);
|
|
738
|
+
get userInfo(): com.logic.data.models.player.GameUserInfo;
|
|
739
|
+
get options(): any/* games.jass.logic.data.models.player.options.PlayerOptions */;
|
|
740
|
+
get points(): any/* games.jass.logic.data.models.player.points.PlayerPoints */;
|
|
741
|
+
copy(userInfo?: com.logic.data.models.player.GameUserInfo, options?: any/* games.jass.logic.data.models.player.options.PlayerOptions */, points?: any/* games.jass.logic.data.models.player.points.PlayerPoints */): games.jass.logic.data.models.player.JassPlayerLite;
|
|
742
|
+
toString(): string;
|
|
743
|
+
hashCode(): number;
|
|
744
|
+
equals(other: Nullable<any>): boolean;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
683
747
|
export declare namespace games.jass.logic.data.models.player {
|
|
684
748
|
class UserProfilePayload {
|
|
685
749
|
constructor(socketId?: Nullable<string>, rating?: Nullable<number>, playedGamesCount?: number);
|
|
@@ -1017,9 +1081,23 @@ export declare namespace games.jass.logic.data.models.table {
|
|
|
1017
1081
|
equals(other: Nullable<any>): boolean;
|
|
1018
1082
|
static get Companion(): {
|
|
1019
1083
|
initial(tableId: string, gameId: string, version: string, 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 */>): games.jass.logic.data.models.table.JassTable;
|
|
1084
|
+
restartRound(version: string, tableLite: games.jass.logic.data.models.table.JassTableLite): games.jass.logic.data.models.table.JassTable;
|
|
1020
1085
|
};
|
|
1021
1086
|
}
|
|
1022
1087
|
}
|
|
1088
|
+
export declare namespace games.jass.logic.data.models.table {
|
|
1089
|
+
class JassTableLite {
|
|
1090
|
+
constructor(id: string, config: games.jass.logic.data.models.table.config.ConfigLite, players: kotlin.collections.KtList<games.jass.logic.data.models.player.JassPlayerLite>, gameInfo: any/* games.jass.logic.data.models.table.GameInfo */);
|
|
1091
|
+
get id(): string;
|
|
1092
|
+
get config(): games.jass.logic.data.models.table.config.ConfigLite;
|
|
1093
|
+
get players(): kotlin.collections.KtList<games.jass.logic.data.models.player.JassPlayerLite>;
|
|
1094
|
+
get gameInfo(): any/* games.jass.logic.data.models.table.GameInfo */;
|
|
1095
|
+
copy(id?: string, config?: games.jass.logic.data.models.table.config.ConfigLite, players?: kotlin.collections.KtList<games.jass.logic.data.models.player.JassPlayerLite>, gameInfo?: any/* games.jass.logic.data.models.table.GameInfo */): games.jass.logic.data.models.table.JassTableLite;
|
|
1096
|
+
toString(): string;
|
|
1097
|
+
hashCode(): number;
|
|
1098
|
+
equals(other: Nullable<any>): boolean;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1023
1101
|
export declare namespace games.jass.logic.data.models.table {
|
|
1024
1102
|
class TableLoggerPayload implements games.raspberry.logger.LoggerPayload {
|
|
1025
1103
|
constructor(id: string, gameId: string, players: Array<games.jass.logic.data.models.table.PlayerLoggerPayload>);
|
|
@@ -1266,6 +1344,9 @@ export declare namespace games.jass.logic.data.models.table.config {
|
|
|
1266
1344
|
toString(): string;
|
|
1267
1345
|
hashCode(): number;
|
|
1268
1346
|
equals(other: Nullable<any>): boolean;
|
|
1347
|
+
static get Companion(): {
|
|
1348
|
+
getServerOptions(isEnableChat?: boolean, isBotsEnabled?: boolean, isEnableChoosePartnerScreen?: boolean): games.jass.logic.data.models.table.config.Options;
|
|
1349
|
+
};
|
|
1269
1350
|
}
|
|
1270
1351
|
}
|
|
1271
1352
|
export declare namespace games.jass.logic.data.models.table.config {
|
|
@@ -1365,17 +1446,19 @@ export declare namespace games.jass.logic.data.models.table.history {
|
|
|
1365
1446
|
}
|
|
1366
1447
|
export declare namespace games.jass.logic.data.models.table.history {
|
|
1367
1448
|
class RoundHistory {
|
|
1368
|
-
constructor(
|
|
1449
|
+
constructor(round: number, items: Array<games.jass.logic.data.models.table.history.RoundHistoryItem>, committed: Nullable<Array<string>>, contractState: Nullable<games.jass.logic.data.models.player.state.RoundContractState>, winners: Nullable<Array<string>>, createdAt: any/* kotlinx.datetime.Instant */);
|
|
1369
1450
|
get roundNumber(): number;
|
|
1370
1451
|
get items(): Array<games.jass.logic.data.models.table.history.RoundHistoryItem>;
|
|
1371
1452
|
get roundCommitted(): Nullable<Array<string>>;
|
|
1372
1453
|
get roundContractState(): Nullable<games.jass.logic.data.models.player.state.RoundContractState>;
|
|
1373
1454
|
get roundWinners(): Nullable<Array<string>>;
|
|
1374
|
-
get
|
|
1455
|
+
get createdAt(): any/* kotlinx.datetime.Instant */;
|
|
1456
|
+
isFailedRoundForPlayer(playerId: string): boolean;
|
|
1457
|
+
get contractStateName(): Nullable<string>;
|
|
1375
1458
|
equals(other: Nullable<any>): boolean;
|
|
1376
1459
|
hashCode(): number;
|
|
1377
1460
|
toStringShort(): string;
|
|
1378
|
-
copy(
|
|
1461
|
+
copy(round?: number, items?: Array<games.jass.logic.data.models.table.history.RoundHistoryItem>, committed?: Nullable<Array<string>>, contractState?: Nullable<games.jass.logic.data.models.player.state.RoundContractState>, winners?: Nullable<Array<string>>, createdAt?: any/* kotlinx.datetime.Instant */): games.jass.logic.data.models.table.history.RoundHistory;
|
|
1379
1462
|
toString(): string;
|
|
1380
1463
|
static get Companion(): {
|
|
1381
1464
|
initial(roundNumber: number): games.jass.logic.data.models.table.history.RoundHistory;
|
|
@@ -1721,10 +1804,27 @@ export declare interface ParserHelper {
|
|
|
1721
1804
|
encodeGameRoundItems(round: games.jass.logic.data.models.table.history.RoundHistory): string;
|
|
1722
1805
|
encodeGameMetadata(metadata: games.jass.logic.data.models.table.history.GameHistoryMetadata): string;
|
|
1723
1806
|
encodeRoomConfig(config: models.RoomConfig): string;
|
|
1807
|
+
decodeTableLite(json: string): games.jass.logic.data.models.table.JassTableLite;
|
|
1808
|
+
decodeFullGameHistoryToTableLite(json: string, round: Nullable<number>): games.jass.logic.data.models.table.JassTableLite;
|
|
1724
1809
|
readonly __doNotUseOrImplementIt: {
|
|
1725
1810
|
readonly ParserHelper: unique symbol;
|
|
1726
1811
|
};
|
|
1727
1812
|
}
|
|
1813
|
+
export declare interface RatingHelper {
|
|
1814
|
+
isValidRatingForLeague(league: games.jass.logic.data.models.leagues.League, rating: number): boolean;
|
|
1815
|
+
mapRatingToLeague(rating: number): games.jass.logic.data.models.leagues.League;
|
|
1816
|
+
getLeaguesConfig(): games.jass.logic.data.models.leagues.LeaguesConfig;
|
|
1817
|
+
readonly __doNotUseOrImplementIt: {
|
|
1818
|
+
readonly RatingHelper: unique symbol;
|
|
1819
|
+
};
|
|
1820
|
+
}
|
|
1821
|
+
export declare namespace di {
|
|
1822
|
+
class EngineHelpersFactory {
|
|
1823
|
+
constructor();
|
|
1824
|
+
get ratingHelper(): RatingHelper;
|
|
1825
|
+
get parserHelper(): ParserHelper;
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1728
1828
|
export declare namespace models {
|
|
1729
1829
|
class RoomConfig {
|
|
1730
1830
|
constructor(players: number, points: number, timeoutTime: number, rulesPreset: string, isPrivate?: Nullable<boolean>, isChatEnabled?: Nullable<boolean>, rules?: Nullable<any>/* Nullable<com.logic.data.models.serializable.rules.RulesDto> */);
|