game_client_logic_deb 1.8.260 → 1.8.303
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 +71 -71
- package/Kosi-Kodein-kodein-di.js +651 -651
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1443 -1443
- package/Logic_Debertz-core.js +2457 -1998
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +21690 -17746
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +160 -71
- package/Logic_Debertz-game_client.js +5206 -4964
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2304 -2123
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -25
- package/kotlinx-coroutines-core.js +2839 -2833
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +354 -354
- package/kotlinx-serialization-kotlinx-serialization-core.js +1882 -1882
- package/kotlinx-serialization-kotlinx-serialization-json.js +1517 -1517
- package/ktor-ktor-client-content-negotiation.js +213 -213
- package/ktor-ktor-client-core.js +2494 -2494
- package/ktor-ktor-client-logging.js +547 -547
- package/ktor-ktor-events.js +11 -11
- package/ktor-ktor-http.js +721 -721
- package/ktor-ktor-io.js +1624 -1624
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +261 -261
- package/ktor-ktor-serialization.js +129 -129
- package/ktor-ktor-utils.js +699 -699
- package/ktor-ktor-websockets.js +57 -57
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +262 -247
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +97 -97
- package/raspberry-cardgame-lib-random.js +1080 -973
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +17 -17
- package/uuid.js +23 -23
|
@@ -104,7 +104,7 @@ export declare namespace games.raspberry.card_game.random.data.models {
|
|
|
104
104
|
equals(other: Nullable<any>): boolean;
|
|
105
105
|
static get Companion(): {
|
|
106
106
|
firstRound(poolId: string, signature: Nullable<string>, newCardDeckData: games.raspberry.card_game.random.data.models.GameCardDeckData, userData: games.raspberry.card_game.random.data.models.CardDeckRequestUserData): games.raspberry.card_game.random.data.models.GameCardDecksRecord;
|
|
107
|
-
|
|
107
|
+
nextRound(gameCardDecksRecord: games.raspberry.card_game.random.data.models.GameCardDecksRecord, newCardDeckData: games.raspberry.card_game.random.data.models.GameCardDeckData): games.raspberry.card_game.random.data.models.GameCardDecksRecord;
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
110
|
class GameCardDeckData {
|
|
@@ -292,12 +292,16 @@ export declare namespace com.logic.data.models {
|
|
|
292
292
|
get name(): "WRONG_PLAYER_TURN";
|
|
293
293
|
get ordinal(): 3;
|
|
294
294
|
};
|
|
295
|
+
static get DUPLICATED_PLAYER_ANSWER(): com.logic.data.models.GameErrorReason.Reason & {
|
|
296
|
+
get name(): "DUPLICATED_PLAYER_ANSWER";
|
|
297
|
+
get ordinal(): 4;
|
|
298
|
+
};
|
|
295
299
|
static get PLAYER_DISCONNECTED(): com.logic.data.models.GameErrorReason.Reason & {
|
|
296
300
|
get name(): "PLAYER_DISCONNECTED";
|
|
297
|
-
get ordinal():
|
|
301
|
+
get ordinal(): 5;
|
|
298
302
|
};
|
|
299
|
-
get name(): "SERVER_ERROR" | "INTERNAL_ERROR" | "GAME_NOT_EXISTS" | "WRONG_PLAYER_TURN" | "PLAYER_DISCONNECTED";
|
|
300
|
-
get ordinal(): 0 | 1 | 2 | 3 | 4;
|
|
303
|
+
get name(): "SERVER_ERROR" | "INTERNAL_ERROR" | "GAME_NOT_EXISTS" | "WRONG_PLAYER_TURN" | "DUPLICATED_PLAYER_ANSWER" | "PLAYER_DISCONNECTED";
|
|
304
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
|
|
301
305
|
static values(): Array<com.logic.data.models.GameErrorReason.Reason>;
|
|
302
306
|
static valueOf(value: string): com.logic.data.models.GameErrorReason.Reason;
|
|
303
307
|
static get Companion(): {
|
|
@@ -317,15 +321,17 @@ export declare namespace com.logic.data.models {
|
|
|
317
321
|
}
|
|
318
322
|
export declare namespace com.logic.data.models.player {
|
|
319
323
|
class GameUserInfo implements com.logic.data.models.player.PlayerIdContract {
|
|
320
|
-
constructor(playerId: string, name: string, avatarUrl?: Nullable<string>, isBot?: boolean, initialLuckyFactor?: Nullable<number>, payload?: Nullable<any>);
|
|
324
|
+
constructor(playerId: string, name: string, avatarUrl?: Nullable<string>, isBot?: boolean, initialLuckyFactor?: Nullable<number>, rating?: Nullable<number>, payload?: Nullable<any>);
|
|
321
325
|
get playerId(): string;
|
|
322
326
|
get name(): string;
|
|
323
327
|
get avatarUrl(): Nullable<string>;
|
|
324
328
|
get isBot(): boolean;
|
|
325
329
|
get initialLuckyFactor(): Nullable<number>;
|
|
330
|
+
get rating(): Nullable<number>;
|
|
326
331
|
get payload(): Nullable<any>;
|
|
332
|
+
getRatingOrDefault(initialUserRating: number): number;
|
|
327
333
|
toString(): string;
|
|
328
|
-
copy(playerId?: string, name?: string, avatarUrl?: Nullable<string>, isBot?: boolean, initialLuckyFactor?: Nullable<number>, payload?: Nullable<any>): com.logic.data.models.player.GameUserInfo;
|
|
334
|
+
copy(playerId?: string, name?: string, avatarUrl?: Nullable<string>, isBot?: boolean, initialLuckyFactor?: Nullable<number>, rating?: Nullable<number>, payload?: Nullable<any>): com.logic.data.models.player.GameUserInfo;
|
|
329
335
|
hashCode(): number;
|
|
330
336
|
equals(other: Nullable<any>): boolean;
|
|
331
337
|
readonly __doNotUseOrImplementIt: com.logic.data.models.player.PlayerIdContract["__doNotUseOrImplementIt"];
|
|
@@ -507,13 +513,14 @@ export declare namespace games.jass.logic {
|
|
|
507
513
|
}
|
|
508
514
|
export declare namespace games.jass.logic.data.models {
|
|
509
515
|
class DealerConfig {
|
|
510
|
-
constructor(dealerStrategy?: games.jass.logic.domain.interactors.dealer.DealerStrategy, isBotsAreHappy?: boolean, cards?: Nullable<Array<number
|
|
516
|
+
constructor(dealerStrategy?: games.jass.logic.domain.interactors.dealer.DealerStrategy, isBotsAreHappy?: boolean, cards?: Nullable<Array<number>>, shouldDisplayDealerStrategy?: boolean);
|
|
511
517
|
get dealerStrategy(): games.jass.logic.domain.interactors.dealer.DealerStrategy;
|
|
512
518
|
get isBotsAreHappy(): boolean;
|
|
513
519
|
get cards(): Nullable<Array<number>>;
|
|
520
|
+
get shouldDisplayDealerStrategy(): boolean;
|
|
514
521
|
equals(other: Nullable<any>): boolean;
|
|
515
522
|
hashCode(): number;
|
|
516
|
-
copy(dealerStrategy?: games.jass.logic.domain.interactors.dealer.DealerStrategy, isBotsAreHappy?: boolean, cards?: Nullable<Array<number
|
|
523
|
+
copy(dealerStrategy?: games.jass.logic.domain.interactors.dealer.DealerStrategy, isBotsAreHappy?: boolean, cards?: Nullable<Array<number>>, shouldDisplayDealerStrategy?: boolean): games.jass.logic.data.models.DealerConfig;
|
|
517
524
|
toString(): string;
|
|
518
525
|
static get Companion(): {
|
|
519
526
|
getFromServerConfig(dealerStrategy?: string, cardsJson?: Nullable<string>): games.jass.logic.data.models.DealerConfig;
|
|
@@ -553,7 +560,7 @@ export declare namespace games.jass.logic.data.models {
|
|
|
553
560
|
equals(other: Nullable<any>): boolean;
|
|
554
561
|
static get Companion(): {
|
|
555
562
|
getClientEngineTestMode(): games.jass.logic.data.models.EngineLogicConfig;
|
|
556
|
-
getServerEngineMode(
|
|
563
|
+
getServerEngineMode(roomMode: string, isPrivate: boolean, transition: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>, fromRound: Nullable<number>, isProduction: boolean, validateFromClientActionTags?: boolean, openRoomIfFinished?: boolean, playerTimeoutFactorToFinishStep?: number): games.jass.logic.data.models.EngineLogicConfig;
|
|
557
564
|
};
|
|
558
565
|
}
|
|
559
566
|
}
|
|
@@ -754,11 +761,10 @@ export declare namespace games.jass.logic.data.models.player {
|
|
|
754
761
|
}
|
|
755
762
|
export declare namespace games.jass.logic.data.models.player {
|
|
756
763
|
class UserProfilePayload {
|
|
757
|
-
constructor(socketId?: Nullable<string>,
|
|
764
|
+
constructor(socketId?: Nullable<string>, playedGamesCount?: number);
|
|
758
765
|
get socketId(): Nullable<string>;
|
|
759
|
-
get rating(): Nullable<number>;
|
|
760
766
|
get playedGamesCount(): number;
|
|
761
|
-
copy(socketId?: Nullable<string>,
|
|
767
|
+
copy(socketId?: Nullable<string>, playedGamesCount?: number): games.jass.logic.data.models.player.UserProfilePayload;
|
|
762
768
|
toString(): string;
|
|
763
769
|
hashCode(): number;
|
|
764
770
|
equals(other: Nullable<any>): boolean;
|
|
@@ -833,6 +839,7 @@ export declare namespace games.jass.logic.data.models.player.analytics {
|
|
|
833
839
|
get liveDurationPercentage(): Nullable<number>;
|
|
834
840
|
get combinations(): Nullable<kotlin.collections.KtList<games.jass.logic.data.models.player.analytics.CombinationAnalytics>>;
|
|
835
841
|
get achievements(): Nullable<games.jass.logic.data.models.player.achievements.Achievements>;
|
|
842
|
+
get wasPlayerOffline(): boolean;
|
|
836
843
|
copy(playerId?: string, liveDurationPercentage?: Nullable<number>, combinations?: Nullable<kotlin.collections.KtList<games.jass.logic.data.models.player.analytics.CombinationAnalytics>>, achievements?: Nullable<games.jass.logic.data.models.player.achievements.Achievements>): games.jass.logic.data.models.player.analytics.PlayerHistoryAnalytics;
|
|
837
844
|
toString(): string;
|
|
838
845
|
hashCode(): number;
|
|
@@ -964,8 +971,7 @@ export declare namespace games.jass.logic.data.models.player.state {
|
|
|
964
971
|
}
|
|
965
972
|
export declare namespace games.jass.logic.data.models.rules {
|
|
966
973
|
class Rules {
|
|
967
|
-
constructor(
|
|
968
|
-
get needToPutHigherTrump(): boolean;
|
|
974
|
+
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);
|
|
969
975
|
get playerWhoChooseSuitGoFirst(): boolean;
|
|
970
976
|
get winnerShuffleCards(): boolean;
|
|
971
977
|
get playWithoutLiabilities(): boolean;
|
|
@@ -975,6 +981,8 @@ export declare namespace games.jass.logic.data.models.rules {
|
|
|
975
981
|
get dealerCounterClockwise(): boolean;
|
|
976
982
|
get contractTypes(): Array<games.jass.logic.data.models.player.state.RoundContractType>;
|
|
977
983
|
get bidTypes(): Array<games.jass.logic.data.models.player.bids.BidType>;
|
|
984
|
+
get needToPutHigherTrump(): boolean;
|
|
985
|
+
get trumpCardStepPartnerMode(): games.jass.logic.data.models.rules.TrumpCardStepPartnerMode;
|
|
978
986
|
get combinationsWithFirstCard(): Array<games.jass.logic.data.models.table.combinations.CombinationType>;
|
|
979
987
|
get protectBella(): boolean;
|
|
980
988
|
get oneTryToProtectBella(): boolean;
|
|
@@ -993,7 +1001,7 @@ export declare namespace games.jass.logic.data.models.rules {
|
|
|
993
1001
|
toString(): string;
|
|
994
1002
|
equals(other: Nullable<any>): boolean;
|
|
995
1003
|
hashCode(): number;
|
|
996
|
-
copy(
|
|
1004
|
+
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;
|
|
997
1005
|
static get Companion(): {
|
|
998
1006
|
get HAND_CARDS_INITIAL(): number;
|
|
999
1007
|
get HAND_CARDS_FINAL(): number;
|
|
@@ -1043,6 +1051,27 @@ export declare namespace games.jass.logic.data.models.rules {
|
|
|
1043
1051
|
static valueOf(value: string): games.jass.logic.data.models.rules.RulesSetType;
|
|
1044
1052
|
}
|
|
1045
1053
|
}
|
|
1054
|
+
export declare namespace games.jass.logic.data.models.rules {
|
|
1055
|
+
abstract class TrumpCardStepPartnerMode {
|
|
1056
|
+
private constructor();
|
|
1057
|
+
static get ANY_CARD(): games.jass.logic.data.models.rules.TrumpCardStepPartnerMode & {
|
|
1058
|
+
get name(): "ANY_CARD";
|
|
1059
|
+
get ordinal(): 0;
|
|
1060
|
+
};
|
|
1061
|
+
static get HIGHER_TRUMP_CARD(): games.jass.logic.data.models.rules.TrumpCardStepPartnerMode & {
|
|
1062
|
+
get name(): "HIGHER_TRUMP_CARD";
|
|
1063
|
+
get ordinal(): 1;
|
|
1064
|
+
};
|
|
1065
|
+
static get ANY_TRUMP_CARD(): games.jass.logic.data.models.rules.TrumpCardStepPartnerMode & {
|
|
1066
|
+
get name(): "ANY_TRUMP_CARD";
|
|
1067
|
+
get ordinal(): 2;
|
|
1068
|
+
};
|
|
1069
|
+
get name(): "ANY_CARD" | "HIGHER_TRUMP_CARD" | "ANY_TRUMP_CARD";
|
|
1070
|
+
get ordinal(): 0 | 1 | 2;
|
|
1071
|
+
static values(): Array<games.jass.logic.data.models.rules.TrumpCardStepPartnerMode>;
|
|
1072
|
+
static valueOf(value: string): games.jass.logic.data.models.rules.TrumpCardStepPartnerMode;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1046
1075
|
export declare namespace games.jass.logic.data.models.scenes {
|
|
1047
1076
|
interface ActData {
|
|
1048
1077
|
readonly actId: string;
|
|
@@ -1090,7 +1119,7 @@ export declare namespace games.jass.logic.data.models.table {
|
|
|
1090
1119
|
equals(other: Nullable<any>): boolean;
|
|
1091
1120
|
static get Companion(): {
|
|
1092
1121
|
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;
|
|
1093
|
-
restartRound(version: string, tableLite: games.jass.logic.data.models.table.JassTableLite): games.jass.logic.data.models.table.JassTable;
|
|
1122
|
+
restartRound(roomId: string, gameId: string, version: string, tableLite: games.jass.logic.data.models.table.JassTableLite): games.jass.logic.data.models.table.JassTable;
|
|
1094
1123
|
};
|
|
1095
1124
|
}
|
|
1096
1125
|
}
|
|
@@ -1130,6 +1159,17 @@ export declare namespace games.jass.logic.data.models.table {
|
|
|
1130
1159
|
readonly __doNotUseOrImplementIt: games.raspberry.logger.LoggerPayload["__doNotUseOrImplementIt"];
|
|
1131
1160
|
}
|
|
1132
1161
|
}
|
|
1162
|
+
export declare namespace games.jass.logic.data.models.table {
|
|
1163
|
+
class TableStateWithActions {
|
|
1164
|
+
constructor(table: games.jass.logic.data.models.table.JassTable, actions: kotlin.collections.KtList<games.jass.logic.redux.actions.client.from.FromClientAction>);
|
|
1165
|
+
get table(): games.jass.logic.data.models.table.JassTable;
|
|
1166
|
+
get actions(): kotlin.collections.KtList<games.jass.logic.redux.actions.client.from.FromClientAction>;
|
|
1167
|
+
copy(table?: games.jass.logic.data.models.table.JassTable, actions?: kotlin.collections.KtList<games.jass.logic.redux.actions.client.from.FromClientAction>): games.jass.logic.data.models.table.TableStateWithActions;
|
|
1168
|
+
toString(): string;
|
|
1169
|
+
hashCode(): number;
|
|
1170
|
+
equals(other: Nullable<any>): boolean;
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1133
1173
|
export declare namespace games.jass.logic.data.models.table.combinations {
|
|
1134
1174
|
class Combination /* implements games.jass.logic.data.models.table.combinations.CombinationContract */ {
|
|
1135
1175
|
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>);
|
|
@@ -1308,7 +1348,7 @@ export declare namespace games.jass.logic.data.models.table.config {
|
|
|
1308
1348
|
}
|
|
1309
1349
|
export declare namespace games.jass.logic.data.models.table.config {
|
|
1310
1350
|
class Config {
|
|
1311
|
-
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>, mode: games.jass.logic.data.models.table.config.RoomMode);
|
|
1351
|
+
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>, league: Nullable<games.jass.logic.data.models.leagues.League>, mode: games.jass.logic.data.models.table.config.RoomMode);
|
|
1312
1352
|
get rules(): games.jass.logic.data.models.rules.Rules;
|
|
1313
1353
|
get rulesSetType(): games.jass.logic.data.models.rules.RulesSetType;
|
|
1314
1354
|
get options(): games.jass.logic.data.models.table.config.Options;
|
|
@@ -1317,9 +1357,10 @@ export declare namespace games.jass.logic.data.models.table.config {
|
|
|
1317
1357
|
get timeoutTimeMillis(): number;
|
|
1318
1358
|
get isPrivate(): boolean;
|
|
1319
1359
|
get dealerStrategy(): Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
|
|
1360
|
+
get league(): Nullable<games.jass.logic.data.models.leagues.League>;
|
|
1320
1361
|
get mode(): games.jass.logic.data.models.table.config.RoomMode;
|
|
1321
1362
|
get playerHandCardsSize(): number;
|
|
1322
|
-
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>, mode?: games.jass.logic.data.models.table.config.RoomMode): games.jass.logic.data.models.table.config.Config;
|
|
1363
|
+
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;
|
|
1323
1364
|
toString(): string;
|
|
1324
1365
|
hashCode(): number;
|
|
1325
1366
|
equals(other: Nullable<any>): boolean;
|
|
@@ -1327,7 +1368,8 @@ export declare namespace games.jass.logic.data.models.table.config {
|
|
|
1327
1368
|
}
|
|
1328
1369
|
export declare namespace games.jass.logic.data.models.table.config {
|
|
1329
1370
|
class ConfigLite {
|
|
1330
|
-
constructor(players: games.jass.logic.data.models.table.config.PlayersMode, points: games.jass.logic.data.models.table.config.PointsMode, timeoutTimeMillis: number, rulesPreset: games.jass.logic.data.models.rules.RulesSetType, isPrivate: boolean, isChatEnabled: boolean, isBotsEnabled: boolean, rules: Nullable<games.jass.logic.data.models.rules.Rules>);
|
|
1371
|
+
constructor(mode: games.jass.logic.data.models.table.config.RoomMode, players: games.jass.logic.data.models.table.config.PlayersMode, points: games.jass.logic.data.models.table.config.PointsMode, timeoutTimeMillis: number, rulesPreset: games.jass.logic.data.models.rules.RulesSetType, isPrivate: boolean, isChatEnabled: boolean, isBotsEnabled: boolean, rules: Nullable<games.jass.logic.data.models.rules.Rules>);
|
|
1372
|
+
get mode(): games.jass.logic.data.models.table.config.RoomMode;
|
|
1331
1373
|
get players(): games.jass.logic.data.models.table.config.PlayersMode;
|
|
1332
1374
|
get points(): games.jass.logic.data.models.table.config.PointsMode;
|
|
1333
1375
|
get timeoutTimeMillis(): number;
|
|
@@ -1336,7 +1378,7 @@ export declare namespace games.jass.logic.data.models.table.config {
|
|
|
1336
1378
|
get isChatEnabled(): boolean;
|
|
1337
1379
|
get isBotsEnabled(): boolean;
|
|
1338
1380
|
get rules(): Nullable<games.jass.logic.data.models.rules.Rules>;
|
|
1339
|
-
copy(players?: games.jass.logic.data.models.table.config.PlayersMode, points?: games.jass.logic.data.models.table.config.PointsMode, timeoutTimeMillis?: number, rulesPreset?: games.jass.logic.data.models.rules.RulesSetType, isPrivate?: boolean, isChatEnabled?: boolean, isBotsEnabled?: boolean, rules?: Nullable<games.jass.logic.data.models.rules.Rules>): games.jass.logic.data.models.table.config.ConfigLite;
|
|
1381
|
+
copy(mode?: games.jass.logic.data.models.table.config.RoomMode, players?: games.jass.logic.data.models.table.config.PlayersMode, points?: games.jass.logic.data.models.table.config.PointsMode, timeoutTimeMillis?: number, rulesPreset?: games.jass.logic.data.models.rules.RulesSetType, isPrivate?: boolean, isChatEnabled?: boolean, isBotsEnabled?: boolean, rules?: Nullable<games.jass.logic.data.models.rules.Rules>): games.jass.logic.data.models.table.config.ConfigLite;
|
|
1340
1382
|
toString(): string;
|
|
1341
1383
|
hashCode(): number;
|
|
1342
1384
|
equals(other: Nullable<any>): boolean;
|
|
@@ -1387,7 +1429,7 @@ export declare namespace games.jass.logic.data.models.table.config {
|
|
|
1387
1429
|
static values(): Array<games.jass.logic.data.models.table.config.PlayersMode>;
|
|
1388
1430
|
static valueOf(value: string): games.jass.logic.data.models.table.config.PlayersMode;
|
|
1389
1431
|
static get Companion(): {
|
|
1390
|
-
create(
|
|
1432
|
+
create(number: number): games.jass.logic.data.models.table.config.PlayersMode;
|
|
1391
1433
|
} & any/* kotlinx.serialization.internal.SerializerFactory */;
|
|
1392
1434
|
}
|
|
1393
1435
|
}
|
|
@@ -1420,6 +1462,25 @@ export declare namespace games.jass.logic.data.models.table.config {
|
|
|
1420
1462
|
} & any/* kotlinx.serialization.internal.SerializerFactory */;
|
|
1421
1463
|
}
|
|
1422
1464
|
}
|
|
1465
|
+
export declare namespace games.jass.logic.data.models.table.config {
|
|
1466
|
+
class RoomConfig {
|
|
1467
|
+
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> */, isBotsEnabled: Nullable<boolean>, dealerStrategy: Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>, league: Nullable<games.jass.logic.data.models.leagues.League>);
|
|
1468
|
+
get players(): number;
|
|
1469
|
+
get points(): number;
|
|
1470
|
+
get timeoutTime(): number;
|
|
1471
|
+
get rulesPreset(): string;
|
|
1472
|
+
get isPrivate(): Nullable<boolean>;
|
|
1473
|
+
get isChatEnabled(): Nullable<boolean>;
|
|
1474
|
+
get rules(): Nullable<any>/* Nullable<com.logic.data.models.serializable.rules.RulesDto> */;
|
|
1475
|
+
get isBotsEnabled(): Nullable<boolean>;
|
|
1476
|
+
get dealerStrategy(): Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
|
|
1477
|
+
get league(): Nullable<games.jass.logic.data.models.leagues.League>;
|
|
1478
|
+
copy(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> */, isBotsEnabled?: Nullable<boolean>, dealerStrategy?: Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>, league?: Nullable<games.jass.logic.data.models.leagues.League>): games.jass.logic.data.models.table.config.RoomConfig;
|
|
1479
|
+
toString(): string;
|
|
1480
|
+
hashCode(): number;
|
|
1481
|
+
equals(other: Nullable<any>): boolean;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1423
1484
|
export declare namespace games.jass.logic.data.models.table.config {
|
|
1424
1485
|
abstract class RoomMode {
|
|
1425
1486
|
private constructor();
|
|
@@ -1448,6 +1509,17 @@ export declare namespace games.jass.logic.data.models.table.config {
|
|
|
1448
1509
|
static valueOf(value: string): games.jass.logic.data.models.table.config.RoomMode;
|
|
1449
1510
|
}
|
|
1450
1511
|
}
|
|
1512
|
+
export declare namespace games.jass.logic.data.models.table.history {
|
|
1513
|
+
class ClientGameHistory {
|
|
1514
|
+
constructor(roundNumber: Nullable<number>, metadata: Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>);
|
|
1515
|
+
get roundNumber(): Nullable<number>;
|
|
1516
|
+
get metadata(): Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>;
|
|
1517
|
+
copy(roundNumber?: Nullable<number>, metadata?: Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>): games.jass.logic.data.models.table.history.ClientGameHistory;
|
|
1518
|
+
toString(): string;
|
|
1519
|
+
hashCode(): number;
|
|
1520
|
+
equals(other: Nullable<any>): boolean;
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1451
1523
|
export declare namespace games.jass.logic.data.models.table.history {
|
|
1452
1524
|
class GameHistory {
|
|
1453
1525
|
constructor(gameId: string, createdAt: any/* kotlinx.datetime.Instant */, rounds: Array<games.jass.logic.data.models.table.history.RoundHistory>, gameWinners: Nullable<Array<string>>, metadata: Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>);
|
|
@@ -1554,16 +1626,20 @@ export declare namespace games.jass.logic.domain.interactors.dealer {
|
|
|
1554
1626
|
get name(): "BASED_ON_PREVIOUS";
|
|
1555
1627
|
get ordinal(): 5;
|
|
1556
1628
|
};
|
|
1629
|
+
static get OFFLINE_SHUFFLE_SIMULATION(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
|
|
1630
|
+
get name(): "OFFLINE_SHUFFLE_SIMULATION";
|
|
1631
|
+
get ordinal(): 6;
|
|
1632
|
+
};
|
|
1557
1633
|
static get EQUAL_HAND_BY_POINTS(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
|
|
1558
1634
|
get name(): "EQUAL_HAND_BY_POINTS";
|
|
1559
|
-
get ordinal():
|
|
1635
|
+
get ordinal(): 7;
|
|
1560
1636
|
};
|
|
1561
1637
|
static get EQUAL_HAND_BY_VALUE(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
|
|
1562
1638
|
get name(): "EQUAL_HAND_BY_VALUE";
|
|
1563
|
-
get ordinal():
|
|
1639
|
+
get ordinal(): 8;
|
|
1564
1640
|
};
|
|
1565
|
-
get name(): "STANDARD" | "REQUEST_HOST_STANDARD" | "RANDOM_ORG" | "RANDOM_ORG_SIGNED" | "FAKE" | "BASED_ON_PREVIOUS" | "EQUAL_HAND_BY_POINTS" | "EQUAL_HAND_BY_VALUE";
|
|
1566
|
-
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
1641
|
+
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
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
1567
1643
|
shouldEqualiseHand(): boolean;
|
|
1568
1644
|
static values(): Array<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
|
|
1569
1645
|
static valueOf(value: string): games.jass.logic.domain.interactors.dealer.DealerStrategy;
|
|
@@ -1571,9 +1647,9 @@ export declare namespace games.jass.logic.domain.interactors.dealer {
|
|
|
1571
1647
|
}
|
|
1572
1648
|
export declare namespace games.jass.logic.redux.actions {
|
|
1573
1649
|
class ClearAction implements com.logic.redux.store.definitions.Action, com.logic.redux.actions.validation.NotValidateIfGameFinishing, com.logic.redux.actions.validation.NotValidateIfGameFinished {
|
|
1574
|
-
constructor(transition?: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1575
|
-
get transition(): Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1576
|
-
copy(transition?: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1650
|
+
constructor(transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>);
|
|
1651
|
+
get transition(): Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>;
|
|
1652
|
+
copy(transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>): games.jass.logic.redux.actions.ClearAction;
|
|
1577
1653
|
toString(): string;
|
|
1578
1654
|
hashCode(): number;
|
|
1579
1655
|
equals(other: Nullable<any>): boolean;
|
|
@@ -1649,18 +1725,20 @@ export declare namespace games.jass.logic.redux.actions.game {
|
|
|
1649
1725
|
readonly __doNotUseOrImplementIt: com.logic.redux.store.definitions.Action["__doNotUseOrImplementIt"];
|
|
1650
1726
|
}
|
|
1651
1727
|
class RoundStartedAction extends games.jass.logic.redux.actions.game.GameAction {
|
|
1652
|
-
constructor(id: string, gameId: string, roundNumber: number, players: Array<string>, isFirstRound: boolean, gameNumber: number, gameHistory: games.jass.logic.data.models.table.history.GameHistory);
|
|
1728
|
+
constructor(id: string, gameId: string, roundNumber: number, players: Array<string>, isFirstRound: boolean, gameNumber: number, roomMode: games.jass.logic.data.models.table.config.RoomMode, gameHistory: games.jass.logic.data.models.table.history.GameHistory);
|
|
1653
1729
|
get id(): string;
|
|
1654
1730
|
get gameId(): string;
|
|
1655
1731
|
get partyNumber(): number;
|
|
1656
1732
|
get players(): Array<string>;
|
|
1657
1733
|
get isFirstRound(): boolean;
|
|
1658
1734
|
get gameNumber(): number;
|
|
1735
|
+
get roomMode(): games.jass.logic.data.models.table.config.RoomMode;
|
|
1659
1736
|
get gameHistory(): games.jass.logic.data.models.table.history.GameHistory;
|
|
1737
|
+
get roomModeString(): string;
|
|
1660
1738
|
toString(): string;
|
|
1661
1739
|
equals(other: Nullable<any>): boolean;
|
|
1662
1740
|
hashCode(): number;
|
|
1663
|
-
copy(id?: string, gameId?: string, roundNumber?: number, players?: Array<string>, isFirstRound?: boolean, gameNumber?: number, gameHistory?: games.jass.logic.data.models.table.history.GameHistory): games.jass.logic.redux.actions.game.RoundStartedAction;
|
|
1741
|
+
copy(id?: string, gameId?: string, roundNumber?: number, players?: Array<string>, isFirstRound?: boolean, gameNumber?: number, roomMode?: games.jass.logic.data.models.table.config.RoomMode, gameHistory?: games.jass.logic.data.models.table.history.GameHistory): games.jass.logic.redux.actions.game.RoundStartedAction;
|
|
1664
1742
|
get actionTag(): string;
|
|
1665
1743
|
}
|
|
1666
1744
|
class RoundEndedAction extends games.jass.logic.redux.actions.game.GameAction {
|
|
@@ -1695,16 +1773,38 @@ export declare namespace games.jass.logic.redux.actions.game {
|
|
|
1695
1773
|
}
|
|
1696
1774
|
}
|
|
1697
1775
|
export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
1698
|
-
|
|
1699
|
-
|
|
1776
|
+
interface GameTransition {
|
|
1777
|
+
readonly previousPlayers: Nullable<kotlin.collections.KtList<string>>;
|
|
1778
|
+
readonly isEnableChoosePartnerScreen: boolean;
|
|
1779
|
+
readonly readyPlayerIdsArray: Array<string>;
|
|
1780
|
+
readonly __doNotUseOrImplementIt: {
|
|
1781
|
+
readonly "games.jass.logic.redux.actions.mechanic.GameTransition": unique symbol;
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
class RevengeRoomTransition implements games.jass.logic.redux.actions.mechanic.GameTransition {
|
|
1785
|
+
constructor(originalRoomMode: games.jass.logic.data.models.table.config.RoomMode, previousPlayers: Nullable<kotlin.collections.KtList<string>>);
|
|
1786
|
+
get originalRoomMode(): games.jass.logic.data.models.table.config.RoomMode;
|
|
1787
|
+
get previousPlayers(): Nullable<kotlin.collections.KtList<string>>;
|
|
1788
|
+
copy(originalRoomMode?: games.jass.logic.data.models.table.config.RoomMode, previousPlayers?: Nullable<kotlin.collections.KtList<string>>): games.jass.logic.redux.actions.mechanic.RevengeRoomTransition;
|
|
1789
|
+
toString(): string;
|
|
1790
|
+
hashCode(): number;
|
|
1791
|
+
equals(other: Nullable<any>): boolean;
|
|
1792
|
+
get isEnableChoosePartnerScreen(): boolean;
|
|
1793
|
+
get readyPlayerIdsArray(): Array<string>;
|
|
1794
|
+
readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.GameTransition["__doNotUseOrImplementIt"];
|
|
1795
|
+
}
|
|
1796
|
+
class GameToRoomTransition implements games.jass.logic.redux.actions.mechanic.GameTransition {
|
|
1797
|
+
constructor(roomId: string, playerIds: Nullable<kotlin.collections.KtList<string>>, previousPlayers: Nullable<kotlin.collections.KtList<string>>);
|
|
1700
1798
|
get roomId(): string;
|
|
1701
|
-
get playerIds(): kotlin.collections.KtList<string
|
|
1799
|
+
get playerIds(): Nullable<kotlin.collections.KtList<string>>;
|
|
1702
1800
|
get previousPlayers(): Nullable<kotlin.collections.KtList<string>>;
|
|
1703
|
-
get
|
|
1704
|
-
|
|
1801
|
+
get isEnableChoosePartnerScreen(): boolean;
|
|
1802
|
+
get readyPlayerIdsArray(): Array<string>;
|
|
1803
|
+
copy(roomId?: string, playerIds?: Nullable<kotlin.collections.KtList<string>>, previousPlayers?: Nullable<kotlin.collections.KtList<string>>): games.jass.logic.redux.actions.mechanic.GameToRoomTransition;
|
|
1705
1804
|
toString(): string;
|
|
1706
1805
|
hashCode(): number;
|
|
1707
1806
|
equals(other: Nullable<any>): boolean;
|
|
1807
|
+
readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.GameTransition["__doNotUseOrImplementIt"];
|
|
1708
1808
|
}
|
|
1709
1809
|
}
|
|
1710
1810
|
export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
@@ -1753,33 +1853,33 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
1753
1853
|
}
|
|
1754
1854
|
/* @ts-ignore: https://github.com/microsoft/TypeScript/issues/4628 */
|
|
1755
1855
|
class FinishingGameMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements games.jass.logic.redux.actions.mechanic.TerminatedAction, com.logic.redux.actions.validation.NotValidateIfGameFinishing {
|
|
1756
|
-
constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, transition?: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1856
|
+
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>);
|
|
1757
1857
|
get reason(): com.logic.data.models.TerminationGameReason;
|
|
1758
1858
|
get isGameFinished(): boolean;
|
|
1759
|
-
get transition(): Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1859
|
+
get transition(): Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>;
|
|
1760
1860
|
get sessionAnalytics(): Nullable<games.jass.logic.data.models.GameSessionAnalytics>;
|
|
1761
1861
|
get gameHistory(): Nullable<games.jass.logic.data.models.table.history.GameHistory>;
|
|
1762
1862
|
get isRoundHistorySaved(): boolean;
|
|
1763
1863
|
get aid(): Nullable<string>;
|
|
1764
1864
|
toString(): string;
|
|
1765
|
-
copy(reason?: com.logic.data.models.TerminationGameReason, isGameFinished?: boolean, transition?: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1865
|
+
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;
|
|
1766
1866
|
hashCode(): number;
|
|
1767
1867
|
equals(other: Nullable<any>): boolean;
|
|
1768
1868
|
get actionTag(): string;
|
|
1769
1869
|
notValidateWhenFinishing(): boolean;
|
|
1770
1870
|
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"];
|
|
1771
1871
|
static get Companion(): {
|
|
1772
|
-
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.
|
|
1872
|
+
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;
|
|
1773
1873
|
};
|
|
1774
1874
|
}
|
|
1775
1875
|
class FinishGameMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements com.logic.redux.actions.validation.NotValidateIfGameFinishing, games.jass.logic.redux.actions.mechanic.TerminatedAction {
|
|
1776
|
-
constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, aid?: Nullable<string>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1876
|
+
constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, aid?: Nullable<string>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>);
|
|
1777
1877
|
get reason(): com.logic.data.models.TerminationGameReason;
|
|
1778
1878
|
get isGameFinished(): boolean;
|
|
1779
1879
|
get aid(): Nullable<string>;
|
|
1780
|
-
get transition(): Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1880
|
+
get transition(): Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>;
|
|
1781
1881
|
toString(): string;
|
|
1782
|
-
copy(reason?: com.logic.data.models.TerminationGameReason, isGameFinished?: boolean, aid?: Nullable<string>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1882
|
+
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;
|
|
1783
1883
|
hashCode(): number;
|
|
1784
1884
|
equals(other: Nullable<any>): boolean;
|
|
1785
1885
|
get actionTag(): string;
|
|
@@ -1794,8 +1894,8 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
1794
1894
|
readonly "games.jass.logic.redux.actions.mechanic.NavigationMechanicAction": unique symbol;
|
|
1795
1895
|
} & com.logic.redux.store.definitions.Action["__doNotUseOrImplementIt"];
|
|
1796
1896
|
}
|
|
1797
|
-
class SceneMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements games.jass.logic.redux.actions.mechanic.NavigationMechanicAction, com.logic.redux.store.definitions.Action, com.logic.redux.actions.ReleaseBufferTriggerAction, com.logic.redux.actions.validation.NotValidateIfGameFinishing, com.logic.redux.actions.validation.NotValidateIfGameFinished/*, games.jass.logic.redux.actions.mechanic.NextPlayerTurnAction */ {
|
|
1798
|
-
constructor(sceneId: string, actId?: Nullable<string>, sceneData?: Nullable<games.jass.logic.data.models.scenes.SceneData>, actData?: Nullable<games.jass.logic.data.models.scenes.ActData>, aid?: Nullable<string>);
|
|
1897
|
+
class SceneMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements games.jass.logic.redux.actions.mechanic.NavigationMechanicAction, com.logic.redux.store.definitions.Action, com.logic.redux.actions.ReleaseBufferTriggerAction, com.logic.data.models.player.PlayerIdContract, com.logic.redux.actions.validation.NotValidateIfGameFinishing, com.logic.redux.actions.validation.NotValidateIfGameFinished/*, games.jass.logic.redux.actions.mechanic.NextPlayerTurnAction, games.jass.logic.redux.actions.mechanic.PlayerTurnIdAnswerAction */ {
|
|
1898
|
+
constructor(currentTurnPlayerId: Nullable<string>, sceneId: string, actId?: Nullable<string>, sceneData?: Nullable<games.jass.logic.data.models.scenes.SceneData>, actData?: Nullable<games.jass.logic.data.models.scenes.ActData>, aid?: Nullable<string>);
|
|
1799
1899
|
get sceneId(): string;
|
|
1800
1900
|
get actId(): Nullable<string>;
|
|
1801
1901
|
get sceneData(): Nullable<games.jass.logic.data.models.scenes.SceneData>;
|
|
@@ -1804,16 +1904,17 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
1804
1904
|
notValidateWhenFinished(): boolean;
|
|
1805
1905
|
notValidateWhenFinishing(): boolean;
|
|
1806
1906
|
toString(): string;
|
|
1807
|
-
copy(sceneId?: string, actId?: Nullable<string>, sceneData?: Nullable<games.jass.logic.data.models.scenes.SceneData>, actData?: Nullable<games.jass.logic.data.models.scenes.ActData>, aid?: Nullable<string>): games.jass.logic.redux.actions.mechanic.SceneMechanicAction;
|
|
1907
|
+
copy(currentTurnPlayerId?: Nullable<string>, sceneId?: string, actId?: Nullable<string>, sceneData?: Nullable<games.jass.logic.data.models.scenes.SceneData>, actData?: Nullable<games.jass.logic.data.models.scenes.ActData>, aid?: Nullable<string>): games.jass.logic.redux.actions.mechanic.SceneMechanicAction;
|
|
1808
1908
|
hashCode(): number;
|
|
1809
1909
|
equals(other: Nullable<any>): boolean;
|
|
1810
1910
|
get actionTag(): string;
|
|
1811
|
-
|
|
1911
|
+
get playerId(): string;
|
|
1912
|
+
readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.MechanicAction["__doNotUseOrImplementIt"] & games.jass.logic.redux.actions.mechanic.NavigationMechanicAction["__doNotUseOrImplementIt"] & com.logic.redux.store.definitions.Action["__doNotUseOrImplementIt"] & com.logic.redux.actions.ReleaseBufferTriggerAction["__doNotUseOrImplementIt"] & com.logic.data.models.player.PlayerIdContract["__doNotUseOrImplementIt"] & com.logic.redux.actions.validation.NotValidateIfGameFinishing["__doNotUseOrImplementIt"] & com.logic.redux.actions.validation.NotValidateIfGameFinished["__doNotUseOrImplementIt"];
|
|
1812
1913
|
}
|
|
1813
1914
|
interface TerminatedAction extends com.logic.redux.store.definitions.Action {
|
|
1814
1915
|
readonly reason: com.logic.data.models.TerminationGameReason;
|
|
1815
1916
|
readonly isGameFinished: boolean;
|
|
1816
|
-
readonly transition: Nullable<games.jass.logic.redux.actions.mechanic.
|
|
1917
|
+
readonly transition: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>;
|
|
1817
1918
|
readonly __doNotUseOrImplementIt: {
|
|
1818
1919
|
readonly "games.jass.logic.redux.actions.mechanic.TerminatedAction": unique symbol;
|
|
1819
1920
|
} & com.logic.redux.store.definitions.Action["__doNotUseOrImplementIt"];
|
|
@@ -1845,8 +1946,8 @@ export declare interface GameHelper {
|
|
|
1845
1946
|
filterRealPlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
|
|
1846
1947
|
getUserSocketId(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerId: string): Nullable<string>;
|
|
1847
1948
|
getUserSocketIds(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>): Nullable<Array<string>>;
|
|
1848
|
-
createConfig(points: number, players: number, timeoutTimeMillis: number, rulesSetType: games.jass.logic.data.models.rules.RulesSetType, rules: any, isEnableChat: boolean, isBotsEnabled: boolean, isPrivate: boolean, dealerStrategy
|
|
1849
|
-
mapToRoomConfig(config: games.jass.logic.data.models.table.config.Config): models.RoomConfig;
|
|
1949
|
+
createConfig(mode: string, 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>, transition: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>, league?: Nullable<string>): games.jass.logic.data.models.table.config.Config;
|
|
1950
|
+
mapToRoomConfig(config: games.jass.logic.data.models.table.config.Config): games.jass.logic.data.models.table.config.RoomConfig;
|
|
1850
1951
|
mapPoints(points: number): games.jass.logic.data.models.table.config.PointsMode;
|
|
1851
1952
|
mapPlayers(players: number): games.jass.logic.data.models.table.config.PlayersMode;
|
|
1852
1953
|
mapRules(rules: any): games.jass.logic.data.models.rules.Rules;
|
|
@@ -1878,11 +1979,13 @@ export declare interface ParserHelper {
|
|
|
1878
1979
|
encodeGameRound(round: games.jass.logic.data.models.table.history.RoundHistory): string;
|
|
1879
1980
|
encodeGameRoundItems(round: games.jass.logic.data.models.table.history.RoundHistory): string;
|
|
1880
1981
|
encodeGameMetadata(metadata: games.jass.logic.data.models.table.history.GameHistoryMetadata): string;
|
|
1881
|
-
encodeRoomConfig(config: models.RoomConfig): string;
|
|
1982
|
+
encodeRoomConfig(config: games.jass.logic.data.models.table.config.RoomConfig): string;
|
|
1882
1983
|
decodeTableLite(json: string): games.jass.logic.data.models.table.JassTableLite;
|
|
1883
1984
|
decodeFullGameHistoryToTableLite(json: string, round: Nullable<number>): games.jass.logic.data.models.table.JassTableLite;
|
|
1884
|
-
encodeGameToRoomTransition(transition: games.jass.logic.redux.actions.mechanic.
|
|
1885
|
-
decodeGameToRoomTransition(json: string): games.jass.logic.redux.actions.mechanic.
|
|
1985
|
+
encodeGameToRoomTransition(transition: games.jass.logic.redux.actions.mechanic.GameTransition): string;
|
|
1986
|
+
decodeGameToRoomTransition(json: string): games.jass.logic.redux.actions.mechanic.GameTransition;
|
|
1987
|
+
decodeTableStateWithActions(json: string): games.jass.logic.data.models.table.TableStateWithActions;
|
|
1988
|
+
encodeTableStateWithActions(table: games.jass.logic.data.models.table.TableStateWithActions): string;
|
|
1886
1989
|
readonly __doNotUseOrImplementIt: {
|
|
1887
1990
|
readonly ParserHelper: unique symbol;
|
|
1888
1991
|
};
|
|
@@ -1897,29 +2000,13 @@ export declare interface RatingHelper {
|
|
|
1897
2000
|
}
|
|
1898
2001
|
export declare namespace di {
|
|
1899
2002
|
class EngineHelpersFactory {
|
|
1900
|
-
constructor();
|
|
2003
|
+
constructor(loggerCallback?: Nullable<(p0: string, p1: Nullable<string>, p2: string, p3: Nullable<Error>, p4: Nullable<any>) => void>);
|
|
1901
2004
|
get ratingHelper(): RatingHelper;
|
|
1902
2005
|
get parserHelper(): ParserHelper;
|
|
1903
2006
|
get gameHelper(): GameHelper;
|
|
1904
2007
|
get gameResources(): GameResources;
|
|
1905
2008
|
}
|
|
1906
2009
|
}
|
|
1907
|
-
export declare namespace models {
|
|
1908
|
-
class RoomConfig {
|
|
1909
|
-
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> */);
|
|
1910
|
-
get players(): number;
|
|
1911
|
-
get points(): number;
|
|
1912
|
-
get timeoutTime(): number;
|
|
1913
|
-
get rulesPreset(): string;
|
|
1914
|
-
get isPrivate(): Nullable<boolean>;
|
|
1915
|
-
get isChatEnabled(): Nullable<boolean>;
|
|
1916
|
-
get rules(): Nullable<any>/* Nullable<com.logic.data.models.serializable.rules.RulesDto> */;
|
|
1917
|
-
copy(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> */): models.RoomConfig;
|
|
1918
|
-
toString(): string;
|
|
1919
|
-
hashCode(): number;
|
|
1920
|
-
equals(other: Nullable<any>): boolean;
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
2010
|
export declare namespace games.jass.logic.client.data.models.config {
|
|
1924
2011
|
abstract class GameType {
|
|
1925
2012
|
private constructor();
|
|
@@ -1953,14 +2040,15 @@ export declare namespace games.jass.logic.client.data.models.config {
|
|
|
1953
2040
|
}
|
|
1954
2041
|
export declare namespace games.jass.logic.client.data.models.config {
|
|
1955
2042
|
class GameClientConfig {
|
|
1956
|
-
constructor(validateSceneActiveState?: boolean, validateCardOnMove?: boolean, validateExpectantActions?: boolean, isAutoStepCurrentPlayer?: boolean, areOpponentsCardsOpened?: boolean, sessionAnalytics?: boolean);
|
|
2043
|
+
constructor(validateSceneActiveState?: boolean, validateCardOnMove?: boolean, validateExpectantActions?: boolean, isAutoStepCurrentPlayer?: boolean, areOpponentsCardsOpened?: boolean, sessionAnalytics?: boolean, showPlayerConnectionState?: boolean);
|
|
1957
2044
|
get validateSceneActiveState(): boolean;
|
|
1958
2045
|
get validateCardOnMove(): boolean;
|
|
1959
2046
|
get validateExpectantActions(): boolean;
|
|
1960
2047
|
get isAutoStepCurrentPlayer(): boolean;
|
|
1961
2048
|
get areOpponentsCardsOpened(): boolean;
|
|
1962
2049
|
get sessionAnalytics(): boolean;
|
|
1963
|
-
|
|
2050
|
+
get showPlayerConnectionState(): boolean;
|
|
2051
|
+
copy(validateSceneActiveState?: boolean, validateCardOnMove?: boolean, validateExpectantActions?: boolean, isAutoStepCurrentPlayer?: boolean, areOpponentsCardsOpened?: boolean, sessionAnalytics?: boolean, showPlayerConnectionState?: boolean): games.jass.logic.client.data.models.config.GameClientConfig;
|
|
1964
2052
|
toString(): string;
|
|
1965
2053
|
hashCode(): number;
|
|
1966
2054
|
equals(other: Nullable<any>): boolean;
|
|
@@ -2031,6 +2119,7 @@ export declare namespace games.jass.logic.client.domain.mechanic {
|
|
|
2031
2119
|
tutorialPassed(skipped: boolean): void;
|
|
2032
2120
|
playerExit(): void;
|
|
2033
2121
|
error(error: Nullable<any>/* Nullable<games.jass.logic.data.models.table.error.ErrorState> */): void;
|
|
2122
|
+
waitingForConnection(): void;
|
|
2034
2123
|
observeGameHistoryEvents(): any/* kotlinx.coroutines.flow.Flow<games.jass.logic.client.data.models.vm.HistoryViewModel> */;
|
|
2035
2124
|
readonly __doNotUseOrImplementIt: {
|
|
2036
2125
|
readonly "games.jass.logic.client.domain.mechanic.GameMechanic": unique symbol;
|