raspberry_games_server_game_logic 1.8.271 → 1.8.273
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 +56 -56
- package/Kosi-Kodein-kodein-di.js +511 -511
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1377 -1377
- package/Logic_Debertz-core.js +1981 -1542
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +22886 -16726
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +80 -20
- package/Logic_Debertz-game_server.js +2076 -950
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +1493 -963
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +316 -316
- package/kotlinx-serialization-kotlinx-serialization-core.js +1802 -1802
- package/kotlinx-serialization-kotlinx-serialization-json.js +1328 -1328
- package/ktor-ktor-client-content-negotiation.js +133 -133
- package/ktor-ktor-client-core.js +1546 -1546
- package/ktor-ktor-client-logging.js +284 -284
- package/ktor-ktor-events.js +5 -5
- package/ktor-ktor-http.js +599 -599
- package/ktor-ktor-io.js +1250 -1247
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +132 -132
- package/ktor-ktor-serialization.js +62 -62
- package/ktor-ktor-utils.js +496 -496
- package/ktor-ktor-websockets.js +42 -42
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +159 -159
- package/raspberry-cardgame-lib-random.js +789 -789
- package/secure-random-secure-random.js +5 -5
- package/uuid.js +11 -11
|
@@ -555,7 +555,7 @@ export declare namespace games.jass.logic.data.models {
|
|
|
555
555
|
equals(other: Nullable<any>): boolean;
|
|
556
556
|
static get Companion(): {
|
|
557
557
|
getClientEngineTestMode(): games.jass.logic.data.models.EngineLogicConfig;
|
|
558
|
-
getServerEngineMode(isProduction: boolean, roomMode: Nullable<string>, isPrivate: boolean, validateFromClientActionTags?: boolean, openRoomIfFinished?: boolean, playerTimeoutFactorToFinishStep?: number): games.jass.logic.data.models.EngineLogicConfig;
|
|
558
|
+
getServerEngineMode(isProduction: boolean, roomMode: Nullable<string>, isPrivate: boolean, validateFromClientActionTags?: boolean, openRoomIfFinished?: boolean, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>, playerTimeoutFactorToFinishStep?: number): games.jass.logic.data.models.EngineLogicConfig;
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
561
|
}
|
|
@@ -1131,6 +1131,17 @@ export declare namespace games.jass.logic.data.models.table {
|
|
|
1131
1131
|
readonly __doNotUseOrImplementIt: games.raspberry.logger.LoggerPayload["__doNotUseOrImplementIt"];
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
|
+
export declare namespace games.jass.logic.data.models.table {
|
|
1135
|
+
class TableStateWithActions {
|
|
1136
|
+
constructor(table: games.jass.logic.data.models.table.JassTable, actions: kotlin.collections.KtList<games.jass.logic.redux.actions.mechanic.MechanicAction>);
|
|
1137
|
+
get table(): games.jass.logic.data.models.table.JassTable;
|
|
1138
|
+
get actions(): kotlin.collections.KtList<games.jass.logic.redux.actions.mechanic.MechanicAction>;
|
|
1139
|
+
copy(table?: games.jass.logic.data.models.table.JassTable, actions?: kotlin.collections.KtList<games.jass.logic.redux.actions.mechanic.MechanicAction>): games.jass.logic.data.models.table.TableStateWithActions;
|
|
1140
|
+
toString(): string;
|
|
1141
|
+
hashCode(): number;
|
|
1142
|
+
equals(other: Nullable<any>): boolean;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1134
1145
|
export declare namespace games.jass.logic.data.models.table.combinations {
|
|
1135
1146
|
class Combination /* implements games.jass.logic.data.models.table.combinations.CombinationContract */ {
|
|
1136
1147
|
constructor(id: string, type: games.jass.logic.data.models.table.combinations.CombinationType, cards: Nullable<kotlin.collections.KtList<any/* io.raspberryapps.card_game.core.data.models.cards.GameCard */>>, reasons: kotlin.collections.KtSet<games.jass.logic.data.models.messages.combinatios.CombinationReason>);
|
|
@@ -1593,9 +1604,9 @@ export declare namespace games.jass.logic.domain.interactors.dealer {
|
|
|
1593
1604
|
}
|
|
1594
1605
|
export declare namespace games.jass.logic.redux.actions {
|
|
1595
1606
|
class ClearAction implements com.logic.redux.store.definitions.Action, com.logic.redux.actions.validation.NotValidateIfGameFinishing, com.logic.redux.actions.validation.NotValidateIfGameFinished {
|
|
1596
|
-
constructor(transition?: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1597
|
-
get transition(): Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1598
|
-
copy(transition?: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1607
|
+
constructor(transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>);
|
|
1608
|
+
get transition(): Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>;
|
|
1609
|
+
copy(transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>): games.jass.logic.redux.actions.ClearAction;
|
|
1599
1610
|
toString(): string;
|
|
1600
1611
|
hashCode(): number;
|
|
1601
1612
|
equals(other: Nullable<any>): boolean;
|
|
@@ -1717,16 +1728,36 @@ export declare namespace games.jass.logic.redux.actions.game {
|
|
|
1717
1728
|
}
|
|
1718
1729
|
}
|
|
1719
1730
|
export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
1720
|
-
|
|
1721
|
-
|
|
1731
|
+
interface GameTransition {
|
|
1732
|
+
readonly previousPlayers: Nullable<kotlin.collections.KtList<string>>;
|
|
1733
|
+
readonly isEnableChoosePartnerScreen: boolean;
|
|
1734
|
+
readonly __doNotUseOrImplementIt: {
|
|
1735
|
+
readonly "games.jass.logic.redux.actions.mechanic.GameTransition": unique symbol;
|
|
1736
|
+
};
|
|
1737
|
+
}
|
|
1738
|
+
class RevengeRoomTransition implements games.jass.logic.redux.actions.mechanic.GameTransition {
|
|
1739
|
+
constructor(originalRoomMode: games.jass.logic.data.models.table.config.RoomMode, previousPlayers: Nullable<kotlin.collections.KtList<string>>);
|
|
1740
|
+
get originalRoomMode(): games.jass.logic.data.models.table.config.RoomMode;
|
|
1741
|
+
get previousPlayers(): Nullable<kotlin.collections.KtList<string>>;
|
|
1742
|
+
copy(originalRoomMode?: games.jass.logic.data.models.table.config.RoomMode, previousPlayers?: Nullable<kotlin.collections.KtList<string>>): games.jass.logic.redux.actions.mechanic.RevengeRoomTransition;
|
|
1743
|
+
toString(): string;
|
|
1744
|
+
hashCode(): number;
|
|
1745
|
+
equals(other: Nullable<any>): boolean;
|
|
1746
|
+
get isEnableChoosePartnerScreen(): boolean;
|
|
1747
|
+
readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.GameTransition["__doNotUseOrImplementIt"];
|
|
1748
|
+
}
|
|
1749
|
+
class GameToRoomTransition implements games.jass.logic.redux.actions.mechanic.GameTransition {
|
|
1750
|
+
constructor(roomId: string, playerIds: Nullable<kotlin.collections.KtList<string>>, previousPlayers: Nullable<kotlin.collections.KtList<string>>);
|
|
1722
1751
|
get roomId(): string;
|
|
1723
|
-
get playerIds(): kotlin.collections.KtList<string
|
|
1752
|
+
get playerIds(): Nullable<kotlin.collections.KtList<string>>;
|
|
1724
1753
|
get previousPlayers(): Nullable<kotlin.collections.KtList<string>>;
|
|
1725
1754
|
get playerIdsArray(): Array<string>;
|
|
1726
|
-
copy(roomId?: string, playerIds?: kotlin.collections.KtList<string
|
|
1755
|
+
copy(roomId?: string, playerIds?: Nullable<kotlin.collections.KtList<string>>, previousPlayers?: Nullable<kotlin.collections.KtList<string>>): games.jass.logic.redux.actions.mechanic.GameToRoomTransition;
|
|
1727
1756
|
toString(): string;
|
|
1728
1757
|
hashCode(): number;
|
|
1729
1758
|
equals(other: Nullable<any>): boolean;
|
|
1759
|
+
get isEnableChoosePartnerScreen(): boolean;
|
|
1760
|
+
readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.GameTransition["__doNotUseOrImplementIt"];
|
|
1730
1761
|
}
|
|
1731
1762
|
}
|
|
1732
1763
|
export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
@@ -1775,33 +1806,33 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
1775
1806
|
}
|
|
1776
1807
|
/* @ts-ignore: https://github.com/microsoft/TypeScript/issues/4628 */
|
|
1777
1808
|
class FinishingGameMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements games.jass.logic.redux.actions.mechanic.TerminatedAction, com.logic.redux.actions.validation.NotValidateIfGameFinishing {
|
|
1778
|
-
constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, transition?: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1809
|
+
constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>, sessionAnalytics?: Nullable<games.jass.logic.data.models.GameSessionAnalytics>, gameHistory?: Nullable<games.jass.logic.data.models.table.history.GameHistory>, isRoundHistorySaved?: boolean, aid?: Nullable<string>);
|
|
1779
1810
|
get reason(): com.logic.data.models.TerminationGameReason;
|
|
1780
1811
|
get isGameFinished(): boolean;
|
|
1781
|
-
get transition(): Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1812
|
+
get transition(): Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>;
|
|
1782
1813
|
get sessionAnalytics(): Nullable<games.jass.logic.data.models.GameSessionAnalytics>;
|
|
1783
1814
|
get gameHistory(): Nullable<games.jass.logic.data.models.table.history.GameHistory>;
|
|
1784
1815
|
get isRoundHistorySaved(): boolean;
|
|
1785
1816
|
get aid(): Nullable<string>;
|
|
1786
1817
|
toString(): string;
|
|
1787
|
-
copy(reason?: com.logic.data.models.TerminationGameReason, isGameFinished?: boolean, transition?: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1818
|
+
copy(reason?: com.logic.data.models.TerminationGameReason, isGameFinished?: boolean, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>, sessionAnalytics?: Nullable<games.jass.logic.data.models.GameSessionAnalytics>, gameHistory?: Nullable<games.jass.logic.data.models.table.history.GameHistory>, isRoundHistorySaved?: boolean, aid?: Nullable<string>): games.jass.logic.redux.actions.mechanic.FinishingGameMechanicAction;
|
|
1788
1819
|
hashCode(): number;
|
|
1789
1820
|
equals(other: Nullable<any>): boolean;
|
|
1790
1821
|
get actionTag(): string;
|
|
1791
1822
|
notValidateWhenFinishing(): boolean;
|
|
1792
1823
|
readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.MechanicAction["__doNotUseOrImplementIt"] & games.jass.logic.redux.actions.mechanic.TerminatedAction["__doNotUseOrImplementIt"] & com.logic.redux.actions.validation.NotValidateIfGameFinishing["__doNotUseOrImplementIt"];
|
|
1793
1824
|
static get Companion(): {
|
|
1794
|
-
withAnalytics(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, table: Nullable<games.jass.logic.data.models.table.JassTable>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1825
|
+
withAnalytics(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, table: Nullable<games.jass.logic.data.models.table.JassTable>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>): games.jass.logic.redux.actions.mechanic.FinishingGameMechanicAction;
|
|
1795
1826
|
};
|
|
1796
1827
|
}
|
|
1797
1828
|
class FinishGameMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements com.logic.redux.actions.validation.NotValidateIfGameFinishing, games.jass.logic.redux.actions.mechanic.TerminatedAction {
|
|
1798
|
-
constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, aid?: Nullable<string>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1829
|
+
constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, aid?: Nullable<string>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>);
|
|
1799
1830
|
get reason(): com.logic.data.models.TerminationGameReason;
|
|
1800
1831
|
get isGameFinished(): boolean;
|
|
1801
1832
|
get aid(): Nullable<string>;
|
|
1802
|
-
get transition(): Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1833
|
+
get transition(): Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>;
|
|
1803
1834
|
toString(): string;
|
|
1804
|
-
copy(reason?: com.logic.data.models.TerminationGameReason, isGameFinished?: boolean, aid?: Nullable<string>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1835
|
+
copy(reason?: com.logic.data.models.TerminationGameReason, isGameFinished?: boolean, aid?: Nullable<string>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>): games.jass.logic.redux.actions.mechanic.FinishGameMechanicAction;
|
|
1805
1836
|
hashCode(): number;
|
|
1806
1837
|
equals(other: Nullable<any>): boolean;
|
|
1807
1838
|
get actionTag(): string;
|
|
@@ -1836,7 +1867,7 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
1836
1867
|
interface TerminatedAction extends com.logic.redux.store.definitions.Action {
|
|
1837
1868
|
readonly reason: com.logic.data.models.TerminationGameReason;
|
|
1838
1869
|
readonly isGameFinished: boolean;
|
|
1839
|
-
readonly transition: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1870
|
+
readonly transition: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>;
|
|
1840
1871
|
readonly __doNotUseOrImplementIt: {
|
|
1841
1872
|
readonly "games.jass.logic.redux.actions.mechanic.TerminatedAction": unique symbol;
|
|
1842
1873
|
} & com.logic.redux.store.definitions.Action["__doNotUseOrImplementIt"];
|
|
@@ -1868,7 +1899,7 @@ export declare interface GameHelper {
|
|
|
1868
1899
|
filterRealPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
|
|
1869
1900
|
getUserSocketId(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerId: string): Nullable<string>;
|
|
1870
1901
|
getUserSocketIds(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>): Nullable<Array<string>>;
|
|
1871
|
-
createConfig(points: number, players: number, timeoutTimeMillis: number, rulesSetType: games.jass.logic.data.models.rules.RulesSetType, rules: any, isEnableChat: boolean, isBotsEnabled: boolean, isPrivate: boolean, dealerStrategy
|
|
1902
|
+
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> | undefined, mode: string, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>, league?: Nullable<string>): games.jass.logic.data.models.table.config.Config;
|
|
1872
1903
|
mapToRoomConfig(config: games.jass.logic.data.models.table.config.Config): games.jass.logic.data.models.table.config.RoomConfig;
|
|
1873
1904
|
mapPoints(points: number): games.jass.logic.data.models.table.config.PointsMode;
|
|
1874
1905
|
mapPlayers(players: number): games.jass.logic.data.models.table.config.PlayersMode;
|
|
@@ -1904,8 +1935,10 @@ export declare interface ParserHelper {
|
|
|
1904
1935
|
encodeRoomConfig(config: games.jass.logic.data.models.table.config.RoomConfig): string;
|
|
1905
1936
|
decodeTableLite(json: string): games.jass.logic.data.models.table.JassTableLite;
|
|
1906
1937
|
decodeFullGameHistoryToTableLite(json: string, round: Nullable<number>): games.jass.logic.data.models.table.JassTableLite;
|
|
1907
|
-
encodeGameToRoomTransition(transition: games.jass.logic.redux.actions.mechanic.
|
|
1908
|
-
decodeGameToRoomTransition(json: string): games.jass.logic.redux.actions.mechanic.
|
|
1938
|
+
encodeGameToRoomTransition(transition: games.jass.logic.redux.actions.mechanic.GameTransition): string;
|
|
1939
|
+
decodeGameToRoomTransition(json: string): games.jass.logic.redux.actions.mechanic.GameTransition;
|
|
1940
|
+
decodeTableStateWithActions(json: string): games.jass.logic.data.models.table.TableStateWithActions;
|
|
1941
|
+
encodeTableStateWithActions(table: games.jass.logic.data.models.table.TableStateWithActions): string;
|
|
1909
1942
|
readonly __doNotUseOrImplementIt: {
|
|
1910
1943
|
readonly ParserHelper: unique symbol;
|
|
1911
1944
|
};
|
|
@@ -1927,9 +1960,35 @@ export declare namespace di {
|
|
|
1927
1960
|
get gameResources(): GameResources;
|
|
1928
1961
|
}
|
|
1929
1962
|
}
|
|
1963
|
+
export declare namespace games.jass.logic.server.data.models.state {
|
|
1964
|
+
interface ServerStateUpdate {
|
|
1965
|
+
readonly __doNotUseOrImplementIt: {
|
|
1966
|
+
readonly "games.jass.logic.server.data.models.state.ServerStateUpdate": unique symbol;
|
|
1967
|
+
};
|
|
1968
|
+
}
|
|
1969
|
+
class TableStateUpdate implements games.jass.logic.server.data.models.state.ServerStateUpdate {
|
|
1970
|
+
constructor(table: games.jass.logic.data.models.table.JassTable);
|
|
1971
|
+
get table(): games.jass.logic.data.models.table.JassTable;
|
|
1972
|
+
copy(table?: games.jass.logic.data.models.table.JassTable): games.jass.logic.server.data.models.state.TableStateUpdate;
|
|
1973
|
+
toString(): string;
|
|
1974
|
+
hashCode(): number;
|
|
1975
|
+
equals(other: Nullable<any>): boolean;
|
|
1976
|
+
readonly __doNotUseOrImplementIt: games.jass.logic.server.data.models.state.ServerStateUpdate["__doNotUseOrImplementIt"];
|
|
1977
|
+
}
|
|
1978
|
+
class ActionsStateUpdate implements games.jass.logic.server.data.models.state.ServerStateUpdate {
|
|
1979
|
+
constructor(actions: kotlin.collections.KtList<games.jass.logic.redux.actions.mechanic.MechanicAction>);
|
|
1980
|
+
get actions(): kotlin.collections.KtList<games.jass.logic.redux.actions.mechanic.MechanicAction>;
|
|
1981
|
+
copy(actions?: kotlin.collections.KtList<games.jass.logic.redux.actions.mechanic.MechanicAction>): games.jass.logic.server.data.models.state.ActionsStateUpdate;
|
|
1982
|
+
toString(): string;
|
|
1983
|
+
hashCode(): number;
|
|
1984
|
+
equals(other: Nullable<any>): boolean;
|
|
1985
|
+
readonly __doNotUseOrImplementIt: games.jass.logic.server.data.models.state.ServerStateUpdate["__doNotUseOrImplementIt"];
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1930
1988
|
export declare namespace games.jass.logic.server.domain {
|
|
1931
1989
|
interface ServerGameEngineContract extends games.jass.logic.GameStoreContract {
|
|
1932
|
-
roomOnCreate(roomId: string, gameCreatorId: string, config: games.jass.logic.data.models.table.config.Config, usersArray: Array<com.logic.data.models.player.GameUserInfo>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1990
|
+
roomOnCreate(roomId: string, gameCreatorId: string, config: games.jass.logic.data.models.table.config.Config, usersArray: Array<com.logic.data.models.player.GameUserInfo>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>, spectators?: Array<com.logic.data.models.player.GameUserInfo>): void;
|
|
1991
|
+
roomOnContinueFromState(state: games.jass.logic.data.models.table.TableStateWithActions): void;
|
|
1933
1992
|
roomOnContinueFromRound(roomId: string, tableLite: games.jass.logic.data.models.table.JassTableLite): void;
|
|
1934
1993
|
addSpectatorsToRoom(spectators: Array<com.logic.data.models.player.GameUserInfo>): void;
|
|
1935
1994
|
removeSpectatorsFromRoom(spectators: Array<com.logic.data.models.player.GameUserInfo>): void;
|
|
@@ -1940,6 +1999,7 @@ export declare namespace games.jass.logic.server.domain {
|
|
|
1940
1999
|
playerLeft(playerId: string): void;
|
|
1941
2000
|
fromClientEvent(action: games.jass.logic.redux.actions.client.from.FromClientAction): void;
|
|
1942
2001
|
subscribeToClientAction(subscriber: (p0: games.jass.logic.redux.actions.client.to.ToClientAction) => void): void;
|
|
2002
|
+
subscribeServerStateUpdate(subscriber: (p0: games.jass.logic.server.data.models.state.ServerStateUpdate) => void): void;
|
|
1943
2003
|
subscribeWith(subscriber: (p0: any/* games.jass.logic.redux.AppState */) => void): void;
|
|
1944
2004
|
clear(): void;
|
|
1945
2005
|
setCanStartNewGameEnabled(enabled: boolean): void;
|