game_client_logic_deb 1.6.33 → 1.6.38
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/Logic_Debertz-core.js +1411 -1125
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +7884 -7800
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +150 -7
- package/Logic_Debertz-game_client.js +2749 -2701
- package/Logic_Debertz-game_client.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,6 +10,88 @@ export declare namespace com.logic.data.models {
|
|
|
10
10
|
static get Companion(): {
|
|
11
11
|
} & any/* kotlinx.serialization.internal.SerializerFactory */;
|
|
12
12
|
}
|
|
13
|
+
class PlayerLostConnectionReason extends com.logic.data.models.TerminationGameReason /* implements com.logic.data.models.FinishPlayerReason */ {
|
|
14
|
+
constructor(playerId: string, tag: Nullable<string>);
|
|
15
|
+
get tag(): Nullable<string>;
|
|
16
|
+
copy(playerId?: string, tag?: Nullable<string>): com.logic.data.models.PlayerLostConnectionReason;
|
|
17
|
+
toString(): string;
|
|
18
|
+
hashCode(): number;
|
|
19
|
+
equals(other: Nullable<any>): boolean;
|
|
20
|
+
static get Companion(): {
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
class PlayerTimeoutReason extends com.logic.data.models.TerminationGameReason /* implements com.logic.data.models.FinishPlayerReason */ {
|
|
24
|
+
constructor(playerId: string, tag: Nullable<string>);
|
|
25
|
+
get tag(): Nullable<string>;
|
|
26
|
+
copy(playerId?: string, tag?: Nullable<string>): com.logic.data.models.PlayerTimeoutReason;
|
|
27
|
+
toString(): string;
|
|
28
|
+
hashCode(): number;
|
|
29
|
+
equals(other: Nullable<any>): boolean;
|
|
30
|
+
static get Companion(): {
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
class PlayerExitReason extends com.logic.data.models.TerminationGameReason /* implements com.logic.data.models.FinishPlayerReason */ {
|
|
34
|
+
constructor(playerId: string);
|
|
35
|
+
copy(playerId?: string): com.logic.data.models.PlayerExitReason;
|
|
36
|
+
toString(): string;
|
|
37
|
+
hashCode(): number;
|
|
38
|
+
equals(other: Nullable<any>): boolean;
|
|
39
|
+
static get Companion(): {
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
class GameFinishedReason extends com.logic.data.models.TerminationGameReason {
|
|
43
|
+
constructor(reason: com.logic.data.models.GameFinishedReason.Reason);
|
|
44
|
+
get reason(): com.logic.data.models.GameFinishedReason.Reason;
|
|
45
|
+
copy(reason?: com.logic.data.models.GameFinishedReason.Reason): com.logic.data.models.GameFinishedReason;
|
|
46
|
+
toString(): string;
|
|
47
|
+
hashCode(): number;
|
|
48
|
+
equals(other: Nullable<any>): boolean;
|
|
49
|
+
static get Companion(): {
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
namespace GameFinishedReason {
|
|
53
|
+
abstract class Reason {
|
|
54
|
+
private constructor();
|
|
55
|
+
static get DEPLOY(): com.logic.data.models.GameFinishedReason.Reason & {
|
|
56
|
+
get name(): "DEPLOY";
|
|
57
|
+
get ordinal(): 0;
|
|
58
|
+
};
|
|
59
|
+
static get PLAYER_DELETED(): com.logic.data.models.GameFinishedReason.Reason & {
|
|
60
|
+
get name(): "PLAYER_DELETED";
|
|
61
|
+
get ordinal(): 1;
|
|
62
|
+
};
|
|
63
|
+
static get NO_ACTIVE_PLAYERS(): com.logic.data.models.GameFinishedReason.Reason & {
|
|
64
|
+
get name(): "NO_ACTIVE_PLAYERS";
|
|
65
|
+
get ordinal(): 2;
|
|
66
|
+
};
|
|
67
|
+
static get GAME_NOT_EXISTS(): com.logic.data.models.GameFinishedReason.Reason & {
|
|
68
|
+
get name(): "GAME_NOT_EXISTS";
|
|
69
|
+
get ordinal(): 3;
|
|
70
|
+
};
|
|
71
|
+
static values(): Array<com.logic.data.models.GameFinishedReason.Reason>;
|
|
72
|
+
static valueOf(value: string): com.logic.data.models.GameFinishedReason.Reason;
|
|
73
|
+
get name(): "DEPLOY" | "PLAYER_DELETED" | "NO_ACTIVE_PLAYERS" | "GAME_NOT_EXISTS";
|
|
74
|
+
get ordinal(): 0 | 1 | 2 | 3;
|
|
75
|
+
static get Companion(): {
|
|
76
|
+
} & any/* kotlinx.serialization.internal.SerializerFactory */;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
class GameErrorReason extends com.logic.data.models.TerminationGameReason {
|
|
80
|
+
constructor(reason: string);
|
|
81
|
+
get reason(): string;
|
|
82
|
+
copy(reason?: string): com.logic.data.models.GameErrorReason;
|
|
83
|
+
toString(): string;
|
|
84
|
+
hashCode(): number;
|
|
85
|
+
equals(other: Nullable<any>): boolean;
|
|
86
|
+
static get Companion(): {
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
const WaitingForConnectionReason: {
|
|
90
|
+
toString(): string;
|
|
91
|
+
} & com.logic.data.models.TerminationGameReason & any/* kotlinx.serialization.internal.SerializerFactory */;
|
|
92
|
+
const ProcessingReason: {
|
|
93
|
+
toString(): string;
|
|
94
|
+
} & com.logic.data.models.TerminationGameReason & any/* kotlinx.serialization.internal.SerializerFactory */;
|
|
13
95
|
}
|
|
14
96
|
export declare namespace com.logic.data.models.player {
|
|
15
97
|
class GameUserInfo implements com.logic.data.models.player.PlayerIdContract {
|
|
@@ -158,6 +240,34 @@ export declare namespace com.logic.data.models.rules {
|
|
|
158
240
|
get ordinal(): 0 | 1 | 2 | 3 | 4;
|
|
159
241
|
}
|
|
160
242
|
}
|
|
243
|
+
export declare namespace com.logic.data.models.serializable.rules {
|
|
244
|
+
class RulesDto {
|
|
245
|
+
constructor(needToPutHigherTrump: Nullable<boolean> | undefined, distributePoints: Nullable<boolean> | undefined, protectBella: Nullable<boolean> | undefined, oneTryToProtectBella: Nullable<boolean> | undefined, enableFourSevensCombination: Nullable<boolean> | undefined, enableTrumpSevenCombination: Nullable<boolean> | undefined, enableTrumpSevenCombinationAfterDistribution: Nullable<boolean> | undefined, playerWhoChooseSuitGoFirst: Nullable<boolean> | undefined, winnerShuffleCards: Nullable<boolean> | undefined, playWithoutLiabilities: Nullable<boolean> | undefined, trumpCardGoToPlayerWhoShuffleCards: Nullable<boolean> | undefined, enableFineIfNoBribes: Nullable<boolean> | undefined, fineIfNoBribes: number, enableFineAfterThirdByte?: Nullable<boolean>, checkTrumpCombination?: Nullable<boolean>, checkOnlyTrumpDebertz?: Nullable<boolean>, tenCardsInHand?: Nullable<boolean>);
|
|
246
|
+
get needToPutHigherTrump(): Nullable<boolean>;
|
|
247
|
+
get distributePoints(): Nullable<boolean>;
|
|
248
|
+
get protectBella(): Nullable<boolean>;
|
|
249
|
+
get oneTryToProtectBella(): Nullable<boolean>;
|
|
250
|
+
get enableFourSevensCombination(): Nullable<boolean>;
|
|
251
|
+
get enableTrumpSevenCombination(): Nullable<boolean>;
|
|
252
|
+
get enableTrumpSevenCombinationAfterDistribution(): Nullable<boolean>;
|
|
253
|
+
get playerWhoChooseSuitGoFirst(): Nullable<boolean>;
|
|
254
|
+
get winnerShuffleCards(): Nullable<boolean>;
|
|
255
|
+
get playWithoutLiabilities(): Nullable<boolean>;
|
|
256
|
+
get trumpCardGoToPlayerWhoShuffleCards(): Nullable<boolean>;
|
|
257
|
+
get enableFineIfNoBribes(): Nullable<boolean>;
|
|
258
|
+
get fineIfNoBribes(): number;
|
|
259
|
+
get enableFineAfterThirdByte(): Nullable<boolean>;
|
|
260
|
+
get checkTrumpCombination(): Nullable<boolean>;
|
|
261
|
+
get checkOnlyTrumpDebertz(): Nullable<boolean>;
|
|
262
|
+
get tenCardsInHand(): Nullable<boolean>;
|
|
263
|
+
copy(needToPutHigherTrump?: Nullable<boolean>, distributePoints?: Nullable<boolean>, protectBella?: Nullable<boolean>, oneTryToProtectBella?: Nullable<boolean>, enableFourSevensCombination?: Nullable<boolean>, enableTrumpSevenCombination?: Nullable<boolean>, enableTrumpSevenCombinationAfterDistribution?: Nullable<boolean>, playerWhoChooseSuitGoFirst?: Nullable<boolean>, winnerShuffleCards?: Nullable<boolean>, playWithoutLiabilities?: Nullable<boolean>, trumpCardGoToPlayerWhoShuffleCards?: Nullable<boolean>, enableFineIfNoBribes?: Nullable<boolean>, fineIfNoBribes?: number, enableFineAfterThirdByte?: Nullable<boolean>, checkTrumpCombination?: Nullable<boolean>, checkOnlyTrumpDebertz?: Nullable<boolean>, tenCardsInHand?: Nullable<boolean>): com.logic.data.models.serializable.rules.RulesDto;
|
|
264
|
+
toString(): string;
|
|
265
|
+
hashCode(): number;
|
|
266
|
+
equals(other: Nullable<any>): boolean;
|
|
267
|
+
static get Companion(): {
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
}
|
|
161
271
|
export declare namespace com.logic.domain.engine.definitions {
|
|
162
272
|
interface Action {
|
|
163
273
|
readonly actionTag: string;
|
|
@@ -406,6 +516,7 @@ export declare namespace com.debertz.logic.data.models.table {
|
|
|
406
516
|
get isCardDeckExist(): boolean;
|
|
407
517
|
get requireCardDeck(): any/* com.debertz.logic.data.models.table.cards.CardDeck */;
|
|
408
518
|
get currentTrump(): Nullable<any>/* Nullable<com.logic.data.models.table.cards.Suit> */;
|
|
519
|
+
get isGameFinished(): boolean;
|
|
409
520
|
copy(id?: string, version?: string, createdAt?: any/* kotlinx.datetime.Instant */, config?: com.debertz.logic.data.models.table.config.Config, players?: any/* kotlin.collections.List<com.debertz.logic.data.models.player.DebertzPlayer> */, sceneInfo?: any/* com.debertz.logic.data.models.table.scene.SceneInfo */, cardsOnTable?: any/* kotlin.collections.List<com.debertz.logic.data.models.table.bribes.CardOnTable> */, bribes?: any/* kotlin.collections.List<com.debertz.logic.data.models.table.cards.Bribe> */, cardDeck?: Nullable<any>/* Nullable<com.debertz.logic.data.models.table.cards.CardDeck> */, gameInfo?: any/* com.debertz.logic.data.models.table.GameInfo */, gameHistory?: com.debertz.logic.data.models.table.history.GameHistory): com.debertz.logic.data.models.table.DebertzTable;
|
|
410
521
|
toString(): string;
|
|
411
522
|
hashCode(): number;
|
|
@@ -722,7 +833,7 @@ export declare namespace com.debertz.logic.redux.actions.game {
|
|
|
722
833
|
get gameId(): string;
|
|
723
834
|
get partyNumber(): number;
|
|
724
835
|
get players(): Array<string>;
|
|
725
|
-
get
|
|
836
|
+
get isFirstRound(): boolean;
|
|
726
837
|
get gameNumber(): number;
|
|
727
838
|
get gameHistory(): com.debertz.logic.data.models.table.history.GameHistory;
|
|
728
839
|
equals(other: Nullable<any>): boolean;
|
|
@@ -735,10 +846,10 @@ export declare namespace com.debertz.logic.redux.actions.game {
|
|
|
735
846
|
constructor(id: string, gameId: string, roundNumber: number, earnedBiggestPointPlayerId: string, roundCommitted: Array<string>, roundWinners: Array<string>, gameLosers: Nullable<Array<string>> | undefined, gameWinners: Nullable<Array<string>> | undefined, luckyFactors: Nullable<Array<com.logic.data.models.player.PlayerLuckyFactor>> | undefined, gameHistory: com.debertz.logic.data.models.table.history.GameHistory);
|
|
736
847
|
get id(): string;
|
|
737
848
|
get gameId(): string;
|
|
738
|
-
get
|
|
849
|
+
get roundNumber(): number;
|
|
739
850
|
get earnedBiggestPointPlayerId(): string;
|
|
740
|
-
get
|
|
741
|
-
get
|
|
851
|
+
get roundCommitted(): Array<string>;
|
|
852
|
+
get roundWinners(): Array<string>;
|
|
742
853
|
get gameLosers(): Nullable<Array<string>>;
|
|
743
854
|
get gameWinners(): Nullable<Array<string>>;
|
|
744
855
|
get luckyFactors(): Nullable<Array<com.logic.data.models.player.PlayerLuckyFactor>>;
|
|
@@ -854,18 +965,50 @@ export declare interface ParserHelper {
|
|
|
854
965
|
readonly ParserHelper: unique symbol;
|
|
855
966
|
};
|
|
856
967
|
}
|
|
968
|
+
export declare namespace com.debertz.logic.client.data.models.config {
|
|
969
|
+
abstract class GameType {
|
|
970
|
+
private constructor();
|
|
971
|
+
static get SINGLE(): com.debertz.logic.client.data.models.config.GameType & {
|
|
972
|
+
get name(): "SINGLE";
|
|
973
|
+
get ordinal(): 0;
|
|
974
|
+
};
|
|
975
|
+
static get SERVER(): com.debertz.logic.client.data.models.config.GameType & {
|
|
976
|
+
get name(): "SERVER";
|
|
977
|
+
get ordinal(): 1;
|
|
978
|
+
};
|
|
979
|
+
static get P2P_CLIENT(): com.debertz.logic.client.data.models.config.GameType & {
|
|
980
|
+
get name(): "P2P_CLIENT";
|
|
981
|
+
get ordinal(): 2;
|
|
982
|
+
};
|
|
983
|
+
static get P2P_SERVER(): com.debertz.logic.client.data.models.config.GameType & {
|
|
984
|
+
get name(): "P2P_SERVER";
|
|
985
|
+
get ordinal(): 3;
|
|
986
|
+
};
|
|
987
|
+
static get TUTORIAL(): com.debertz.logic.client.data.models.config.GameType & {
|
|
988
|
+
get name(): "TUTORIAL";
|
|
989
|
+
get ordinal(): 4;
|
|
990
|
+
};
|
|
991
|
+
static values(): Array<com.debertz.logic.client.data.models.config.GameType>;
|
|
992
|
+
static valueOf(value: string): com.debertz.logic.client.data.models.config.GameType;
|
|
993
|
+
get name(): "SINGLE" | "SERVER" | "P2P_CLIENT" | "P2P_SERVER" | "TUTORIAL";
|
|
994
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4;
|
|
995
|
+
static get Companion(): {
|
|
996
|
+
} & any/* kotlinx.serialization.internal.SerializerFactory */;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
857
999
|
export declare namespace com.debertz.logic.client.data.models.vm {
|
|
858
1000
|
class GameHistoryViewModel /* extends com.debertz.logic.client.data.models.vm.HistoryViewModel */ {
|
|
859
|
-
constructor(gameId: string, createdAt: any/* kotlinx.datetime.Instant */, users: Array<com.logic.data.models.player.GameUserInfo>, config: com.debertz.logic.data.models.table.config.ConfigLite, gameWinners: Nullable<Array<string>>);
|
|
1001
|
+
constructor(gameId: string, createdAt: any/* kotlinx.datetime.Instant */, gameType: com.debertz.logic.client.data.models.config.GameType, users: Array<com.logic.data.models.player.GameUserInfo>, config: com.debertz.logic.data.models.table.config.ConfigLite, gameWinners: Nullable<Array<string>>);
|
|
860
1002
|
get gameId(): string;
|
|
861
1003
|
get createdAt(): any/* kotlinx.datetime.Instant */;
|
|
1004
|
+
get gameType(): com.debertz.logic.client.data.models.config.GameType;
|
|
862
1005
|
get users(): Array<com.logic.data.models.player.GameUserInfo>;
|
|
863
1006
|
get config(): com.debertz.logic.data.models.table.config.ConfigLite;
|
|
864
1007
|
get gameWinners(): Nullable<Array<string>>;
|
|
1008
|
+
toString(): string;
|
|
865
1009
|
equals(other: Nullable<any>): boolean;
|
|
866
1010
|
hashCode(): number;
|
|
867
|
-
copy(gameId?: string, createdAt?: any/* kotlinx.datetime.Instant */, users?: Array<com.logic.data.models.player.GameUserInfo>, config?: com.debertz.logic.data.models.table.config.ConfigLite, gameWinners?: Nullable<Array<string>>): com.debertz.logic.client.data.models.vm.GameHistoryViewModel;
|
|
868
|
-
toString(): string;
|
|
1011
|
+
copy(gameId?: string, createdAt?: any/* kotlinx.datetime.Instant */, gameType?: com.debertz.logic.client.data.models.config.GameType, users?: Array<com.logic.data.models.player.GameUserInfo>, config?: com.debertz.logic.data.models.table.config.ConfigLite, gameWinners?: Nullable<Array<string>>): com.debertz.logic.client.data.models.vm.GameHistoryViewModel;
|
|
869
1012
|
}
|
|
870
1013
|
class RoundEndedHistoryViewModel /* extends com.debertz.logic.client.data.models.vm.HistoryViewModel */ {
|
|
871
1014
|
constructor(gameId: string, roundNumber: number, items: Array<com.debertz.logic.data.models.table.history.RoundHistoryItem>, roundWinners: Array<string>, gameEndedHistory: Nullable<com.debertz.logic.client.data.models.vm.GameHistoryViewModel>);
|