valtech-components 4.0.466 → 4.0.468
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/esm2022/lib/components/organisms/mini-games/chessimals-challenge-progress.service.mjs +9 -1
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +156 -18
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +31 -1
- package/esm2022/lib/components/organisms/mini-games/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +194 -18
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +18 -1
- package/lib/components/organisms/mini-games/types.d.ts +7 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -57,6 +57,16 @@ interface ChessimalsProgressMetricView {
|
|
|
57
57
|
label: string;
|
|
58
58
|
value: string | number;
|
|
59
59
|
}
|
|
60
|
+
interface ChessimalsMoveScoreView {
|
|
61
|
+
combo: number;
|
|
62
|
+
label: string;
|
|
63
|
+
score: number;
|
|
64
|
+
}
|
|
65
|
+
interface ChessimalsGameScoreView {
|
|
66
|
+
bestCombo: number;
|
|
67
|
+
bestMove?: ChessimalsMoveScoreView;
|
|
68
|
+
score: number;
|
|
69
|
+
}
|
|
60
70
|
export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
61
71
|
private readonly i18n;
|
|
62
72
|
private readonly audio;
|
|
@@ -85,6 +95,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
85
95
|
private turnTimerInterval;
|
|
86
96
|
private turnTimerKey;
|
|
87
97
|
private turnTimerDeadline;
|
|
98
|
+
private turnTimerDuration;
|
|
88
99
|
private turnTimerExpiredKey;
|
|
89
100
|
private pendingOnlineGameId;
|
|
90
101
|
private openingOnlineGameId;
|
|
@@ -99,7 +110,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
99
110
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
100
111
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
101
112
|
readonly animals: ChessimalsAnimalView[];
|
|
102
|
-
readonly valtechComponentsVersion = "4.0.
|
|
113
|
+
readonly valtechComponentsVersion = "4.0.468";
|
|
103
114
|
readonly screen: import("@angular/core").WritableSignal<"home" | "game">;
|
|
104
115
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
105
116
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -205,11 +216,13 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
205
216
|
readonly capturesByColor: import("@angular/core").Signal<Record<ChessimalsPlayerColor, number>>;
|
|
206
217
|
readonly resultCaptures: import("@angular/core").Signal<number>;
|
|
207
218
|
readonly resultPowers: import("@angular/core").Signal<ChessimalsAnimalType[]>;
|
|
219
|
+
readonly resultScore: import("@angular/core").Signal<ChessimalsGameScoreView>;
|
|
208
220
|
readonly resultStats: import("@angular/core").Signal<{
|
|
209
221
|
label: string;
|
|
210
222
|
value: string;
|
|
211
223
|
}[]>;
|
|
212
224
|
readonly resultPowersLabel: import("@angular/core").Signal<string>;
|
|
225
|
+
readonly resultBestMoveLabel: import("@angular/core").Signal<string>;
|
|
213
226
|
readonly shouldShowBotReport: import("@angular/core").Signal<boolean>;
|
|
214
227
|
readonly botReportTitle: import("@angular/core").Signal<string>;
|
|
215
228
|
readonly botReportBody: import("@angular/core").Signal<string>;
|
|
@@ -322,6 +335,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
322
335
|
playerLabel(color: ChessimalsPlayerColor): string;
|
|
323
336
|
capturesScoreLabel(): string;
|
|
324
337
|
turnTimerLabel(): string;
|
|
338
|
+
turnTimerProgress(): string;
|
|
325
339
|
isTurnTimerLow(): boolean;
|
|
326
340
|
turnStateLabel(): string;
|
|
327
341
|
turnStateBody(): string;
|
|
@@ -389,6 +403,9 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
389
403
|
challengeTensionMoment(): ChessimalsChallengeTensionView | undefined;
|
|
390
404
|
challengeHasNewRecord(): boolean;
|
|
391
405
|
totalChallengePowers(stats?: ChessimalsChallengeRoundStats): number;
|
|
406
|
+
private createGameScore;
|
|
407
|
+
private scoreChessimalsMove;
|
|
408
|
+
private colorFromPieceId;
|
|
392
409
|
private createChallengeRoundStats;
|
|
393
410
|
private modeStatsResult;
|
|
394
411
|
animalLabel(type: ChessimalsAnimalType): string;
|
|
@@ -76,6 +76,9 @@ export interface ChessimalsChallengeRoundStats {
|
|
|
76
76
|
promotions: number;
|
|
77
77
|
captures: number;
|
|
78
78
|
moves: number;
|
|
79
|
+
score: number;
|
|
80
|
+
bestMoveScore: number;
|
|
81
|
+
bestCombo: number;
|
|
79
82
|
}
|
|
80
83
|
export interface ChessimalsChallengeRoundResult {
|
|
81
84
|
round: number;
|
|
@@ -115,6 +118,10 @@ export interface ChessimalsChallengeStats {
|
|
|
115
118
|
powersUsed: Record<ChessimalsAnimalType, number>;
|
|
116
119
|
powerCaptures: number;
|
|
117
120
|
promotions: number;
|
|
121
|
+
totalScore: number;
|
|
122
|
+
bestRoundScore: number;
|
|
123
|
+
bestMoveScore: number;
|
|
124
|
+
bestCombo: number;
|
|
118
125
|
modeStats: Record<ChessimalsStatsMode, ChessimalsModeStats>;
|
|
119
126
|
updatedAt?: string;
|
|
120
127
|
}
|
package/lib/version.d.ts
CHANGED