game_client_logic_deb 1.8.247 → 1.8.253
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/Kosi-Kaverit-kaverit.js +58 -58
- package/Kosi-Kodein-kodein-di.js +518 -518
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1333 -1333
- package/Logic_Debertz-core.js +1370 -1331
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +14122 -12987
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +66 -24
- package/Logic_Debertz-game_client.js +3154 -3154
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +492 -446
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +2170 -2170
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +311 -311
- package/kotlinx-serialization-kotlinx-serialization-core.js +1756 -1756
- package/kotlinx-serialization-kotlinx-serialization-json.js +1320 -1320
- package/ktor-ktor-client-content-negotiation.js +133 -133
- package/ktor-ktor-client-core.js +1537 -1537
- package/ktor-ktor-client-logging.js +282 -282
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +600 -600
- package/ktor-ktor-io.js +1257 -1257
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +136 -136
- package/ktor-ktor-serialization.js +62 -62
- package/ktor-ktor-utils.js +492 -492
- package/ktor-ktor-websockets.js +42 -42
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +159 -159
- package/raspberry-cardgame-lib-logger.js +88 -88
- package/raspberry-cardgame-lib-random.js +784 -784
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +5 -5
- package/uuid.js +12 -12
|
@@ -646,25 +646,28 @@ export declare namespace games.jass.logic.data.models.dealer {
|
|
|
646
646
|
export declare namespace games.jass.logic.data.models.leagues {
|
|
647
647
|
abstract class League {
|
|
648
648
|
private constructor();
|
|
649
|
-
static get
|
|
650
|
-
get name(): "
|
|
649
|
+
static get beginner(): games.jass.logic.data.models.leagues.League & {
|
|
650
|
+
get name(): "beginner";
|
|
651
651
|
get ordinal(): 0;
|
|
652
652
|
};
|
|
653
|
-
static get
|
|
654
|
-
get name(): "
|
|
653
|
+
static get rookie(): games.jass.logic.data.models.leagues.League & {
|
|
654
|
+
get name(): "rookie";
|
|
655
655
|
get ordinal(): 1;
|
|
656
656
|
};
|
|
657
|
-
static get
|
|
658
|
-
get name(): "
|
|
657
|
+
static get advanced(): games.jass.logic.data.models.leagues.League & {
|
|
658
|
+
get name(): "advanced";
|
|
659
659
|
get ordinal(): 2;
|
|
660
660
|
};
|
|
661
|
-
static get
|
|
662
|
-
get name(): "
|
|
661
|
+
static get master(): games.jass.logic.data.models.leagues.League & {
|
|
662
|
+
get name(): "master";
|
|
663
663
|
get ordinal(): 3;
|
|
664
664
|
};
|
|
665
|
-
get name(): "
|
|
665
|
+
get name(): "beginner" | "rookie" | "advanced" | "master";
|
|
666
666
|
get ordinal(): 0 | 1 | 2 | 3;
|
|
667
|
+
getPreviousLeague(): Nullable<games.jass.logic.data.models.leagues.League>;
|
|
668
|
+
getNextLeague(): Nullable<games.jass.logic.data.models.leagues.League>;
|
|
667
669
|
getMinRating(): number;
|
|
670
|
+
getMaxRating(maxUserRating: number): number;
|
|
668
671
|
isEnabled(): boolean;
|
|
669
672
|
static values(): Array<games.jass.logic.data.models.leagues.League>;
|
|
670
673
|
static valueOf(value: string): games.jass.logic.data.models.leagues.League;
|
|
@@ -672,24 +675,29 @@ export declare namespace games.jass.logic.data.models.leagues {
|
|
|
672
675
|
}
|
|
673
676
|
export declare namespace games.jass.logic.data.models.leagues {
|
|
674
677
|
class LeaguesConfig {
|
|
675
|
-
constructor(
|
|
678
|
+
constructor(initialUserRating: number, minUserRating: number, maxUserRating: number, leagues: Array<games.jass.logic.data.models.leagues.LeagueInfo>);
|
|
676
679
|
get initialRating(): number;
|
|
677
|
-
get
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
680
|
+
get minUserRating(): number;
|
|
681
|
+
get maxUserRating(): number;
|
|
682
|
+
get leagues(): Array<games.jass.logic.data.models.leagues.LeagueInfo>;
|
|
683
|
+
getLeagueInfo(league: games.jass.logic.data.models.leagues.League): games.jass.logic.data.models.leagues.LeagueInfo;
|
|
684
|
+
getLeagueByRating(rating: number): games.jass.logic.data.models.leagues.League;
|
|
685
|
+
getLeagueInfoByRating(rating: number): games.jass.logic.data.models.leagues.LeagueInfo;
|
|
683
686
|
equals(other: Nullable<any>): boolean;
|
|
687
|
+
hashCode(): number;
|
|
688
|
+
copy(initialUserRating?: number, minUserRating?: number, maxUserRating?: number, leagues?: Array<games.jass.logic.data.models.leagues.LeagueInfo>): games.jass.logic.data.models.leagues.LeaguesConfig;
|
|
689
|
+
toString(): string;
|
|
684
690
|
static get Companion(): {
|
|
685
691
|
defaultConfig(): games.jass.logic.data.models.leagues.LeaguesConfig;
|
|
686
692
|
};
|
|
687
693
|
}
|
|
688
694
|
class LeagueInfo {
|
|
689
|
-
constructor(minRating: number, enabled: boolean);
|
|
695
|
+
constructor(league: games.jass.logic.data.models.leagues.League, minRating: number, maxRating: number, enabled: boolean);
|
|
696
|
+
get league(): games.jass.logic.data.models.leagues.League;
|
|
690
697
|
get minRating(): number;
|
|
698
|
+
get maxRating(): number;
|
|
691
699
|
get enabled(): boolean;
|
|
692
|
-
copy(minRating?: number, enabled?: boolean): games.jass.logic.data.models.leagues.LeagueInfo;
|
|
700
|
+
copy(league?: games.jass.logic.data.models.leagues.League, minRating?: number, maxRating?: number, enabled?: boolean): games.jass.logic.data.models.leagues.LeagueInfo;
|
|
693
701
|
toString(): string;
|
|
694
702
|
hashCode(): number;
|
|
695
703
|
equals(other: Nullable<any>): boolean;
|
|
@@ -1447,11 +1455,11 @@ export declare namespace games.jass.logic.data.models.table.history {
|
|
|
1447
1455
|
export declare namespace games.jass.logic.data.models.table.history {
|
|
1448
1456
|
class RoundHistory {
|
|
1449
1457
|
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 */);
|
|
1450
|
-
get
|
|
1458
|
+
get round(): number;
|
|
1451
1459
|
get items(): Array<games.jass.logic.data.models.table.history.RoundHistoryItem>;
|
|
1452
|
-
get
|
|
1453
|
-
get
|
|
1454
|
-
get
|
|
1460
|
+
get committed(): Nullable<Array<string>>;
|
|
1461
|
+
get contractState(): Nullable<games.jass.logic.data.models.player.state.RoundContractState>;
|
|
1462
|
+
get winners(): Nullable<Array<string>>;
|
|
1455
1463
|
get createdAt(): any/* kotlinx.datetime.Instant */;
|
|
1456
1464
|
isFailedRoundForPlayer(playerId: string): boolean;
|
|
1457
1465
|
get contractStateName(): Nullable<string>;
|
|
@@ -1729,12 +1737,13 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
1729
1737
|
};
|
|
1730
1738
|
}
|
|
1731
1739
|
class FinishGameMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements com.logic.redux.actions.validation.NotValidateIfGameFinishing, games.jass.logic.redux.actions.mechanic.TerminatedAction {
|
|
1732
|
-
constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, aid?: Nullable<string>);
|
|
1740
|
+
constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, aid?: Nullable<string>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameToRoomTransition>);
|
|
1733
1741
|
get reason(): com.logic.data.models.TerminationGameReason;
|
|
1734
1742
|
get isGameFinished(): boolean;
|
|
1735
1743
|
get aid(): Nullable<string>;
|
|
1736
|
-
|
|
1744
|
+
get transition(): Nullable<games.jass.logic.redux.actions.mechanic.GameToRoomTransition>;
|
|
1737
1745
|
toString(): string;
|
|
1746
|
+
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;
|
|
1738
1747
|
hashCode(): number;
|
|
1739
1748
|
equals(other: Nullable<any>): boolean;
|
|
1740
1749
|
get actionTag(): string;
|
|
@@ -1768,6 +1777,7 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
1768
1777
|
interface TerminatedAction extends com.logic.redux.store.definitions.Action {
|
|
1769
1778
|
readonly reason: com.logic.data.models.TerminationGameReason;
|
|
1770
1779
|
readonly isGameFinished: boolean;
|
|
1780
|
+
readonly transition: Nullable<games.jass.logic.redux.actions.mechanic.GameToRoomTransition>;
|
|
1771
1781
|
readonly __doNotUseOrImplementIt: {
|
|
1772
1782
|
readonly "games.jass.logic.redux.actions.mechanic.TerminatedAction": unique symbol;
|
|
1773
1783
|
} & com.logic.redux.store.definitions.Action["__doNotUseOrImplementIt"];
|
|
@@ -1792,6 +1802,36 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
1792
1802
|
readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.MechanicAction["__doNotUseOrImplementIt"] & com.logic.redux.actions.validation.NotValidateIfGameFinishing["__doNotUseOrImplementIt"] & com.logic.redux.actions.validation.NotValidateIfGameFinished["__doNotUseOrImplementIt"];
|
|
1793
1803
|
}
|
|
1794
1804
|
}
|
|
1805
|
+
export declare interface GameHelper {
|
|
1806
|
+
filterLivePlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
|
|
1807
|
+
filterLiveDuringGamePlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
|
|
1808
|
+
filterBotPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
|
|
1809
|
+
filterRealPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
|
|
1810
|
+
getUserSocketId(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerId: string): Nullable<string>;
|
|
1811
|
+
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;
|
|
1813
|
+
mapToRoomConfig(config: games.jass.logic.data.models.table.config.Config): models.RoomConfig;
|
|
1814
|
+
mapPoints(points: number): games.jass.logic.data.models.table.config.PointsMode;
|
|
1815
|
+
mapPlayers(players: number): games.jass.logic.data.models.table.config.PlayersMode;
|
|
1816
|
+
mapRules(rules: any): games.jass.logic.data.models.rules.Rules;
|
|
1817
|
+
prepareConfigObjectWithPagination(config: any): any;
|
|
1818
|
+
prepareConfigObject(config: any): any;
|
|
1819
|
+
isValidConfigObject(config: any): boolean;
|
|
1820
|
+
isValidConfig(players: number, points: number, timeoutTime: number, rulesPreset: string, rules: any): boolean;
|
|
1821
|
+
getRulesByType(rulesSetType: games.jass.logic.data.models.rules.RulesSetType): games.jass.logic.data.models.rules.Rules;
|
|
1822
|
+
getRulesByString(name: string): games.jass.logic.data.models.rules.Rules;
|
|
1823
|
+
mapRulesSetType(name: string): games.jass.logic.data.models.rules.RulesSetType;
|
|
1824
|
+
readonly __doNotUseOrImplementIt: {
|
|
1825
|
+
readonly GameHelper: unique symbol;
|
|
1826
|
+
};
|
|
1827
|
+
}
|
|
1828
|
+
export declare interface GameResources {
|
|
1829
|
+
createBotUser(playerId: string, existingNicknames?: Array<string>): com.logic.data.models.player.GameUserInfo;
|
|
1830
|
+
createBotUsers(playerIds: Array<string>): Array<com.logic.data.models.player.GameUserInfo>;
|
|
1831
|
+
readonly __doNotUseOrImplementIt: {
|
|
1832
|
+
readonly GameResources: unique symbol;
|
|
1833
|
+
};
|
|
1834
|
+
}
|
|
1795
1835
|
export declare const ERROR: string;
|
|
1796
1836
|
export declare const DEBUG: string;
|
|
1797
1837
|
export declare const WARN: string;
|
|
@@ -1823,6 +1863,8 @@ export declare namespace di {
|
|
|
1823
1863
|
constructor();
|
|
1824
1864
|
get ratingHelper(): RatingHelper;
|
|
1825
1865
|
get parserHelper(): ParserHelper;
|
|
1866
|
+
get gameHelper(): GameHelper;
|
|
1867
|
+
get gameResources(): GameResources;
|
|
1826
1868
|
}
|
|
1827
1869
|
}
|
|
1828
1870
|
export declare namespace models {
|