valtech-components 4.0.523 → 4.0.525
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 +45 -6
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +224 -50
- package/esm2022/lib/components/organisms/mini-games/mini-games-menu.component.mjs +3 -3
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +65 -1
- package/esm2022/lib/components/organisms/mini-games/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +334 -57
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/chessimals-challenge-progress.service.d.ts +4 -0
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +14 -1
- package/lib/components/organisms/mini-games/types.d.ts +1 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -32,7 +32,11 @@ export declare class ChessimalsChallengeProgressService {
|
|
|
32
32
|
private runsPath;
|
|
33
33
|
private readLocalActiveRun;
|
|
34
34
|
private writeLocalActiveRun;
|
|
35
|
+
private clearLocalActiveRun;
|
|
35
36
|
private localActiveRunKey;
|
|
37
|
+
private newestActiveRun;
|
|
38
|
+
private runProgressScore;
|
|
39
|
+
private runTime;
|
|
36
40
|
private withoutUndefined;
|
|
37
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChessimalsChallengeProgressService, never>;
|
|
38
42
|
static ɵprov: i0.ɵɵInjectableDeclaration<ChessimalsChallengeProgressService>;
|
|
@@ -114,7 +114,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
114
114
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
115
115
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
116
116
|
readonly animals: ChessimalsAnimalView[];
|
|
117
|
-
readonly valtechComponentsVersion = "4.0.
|
|
117
|
+
readonly valtechComponentsVersion = "4.0.525";
|
|
118
118
|
readonly screen: import("@angular/core").WritableSignal<"home" | "challenge" | "path" | "game">;
|
|
119
119
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
120
120
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -178,6 +178,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
178
178
|
readonly selectedBotProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
|
|
179
179
|
readonly gameBotProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
|
|
180
180
|
readonly activeChallengeBot: import("@angular/core").Signal<ChessimalsChallengeBot>;
|
|
181
|
+
readonly resumableChallengeRun: import("@angular/core").Signal<ChessimalsChallengeRun>;
|
|
181
182
|
set onlineGameId(value: string | null | undefined);
|
|
182
183
|
miniGamesRoute: string;
|
|
183
184
|
projectionMode: boolean;
|
|
@@ -255,12 +256,16 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
255
256
|
private shortUserId;
|
|
256
257
|
private rangeValueToNumber;
|
|
257
258
|
startChallenge(): void;
|
|
259
|
+
requestNewChallenge(): void;
|
|
258
260
|
openChallengeView(): void;
|
|
259
261
|
backToHome(): void;
|
|
260
262
|
private createNewChallengeRun;
|
|
263
|
+
private resetChallengeSessionState;
|
|
261
264
|
resumeChallenge(run?: ChessimalsChallengeRun): void;
|
|
262
265
|
continueChallenge(): void;
|
|
263
266
|
private startChallengeRound;
|
|
267
|
+
private enterChallengeRound;
|
|
268
|
+
private isResumableChallengeRun;
|
|
264
269
|
startGame(): void;
|
|
265
270
|
private handleChallengeRoundFinished;
|
|
266
271
|
private abandonChallengeIfNeeded;
|
|
@@ -272,6 +277,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
272
277
|
restartGame(): void;
|
|
273
278
|
exitTutorial(): void;
|
|
274
279
|
resetToModeSetup(): void;
|
|
280
|
+
private returnChallengeToMenu;
|
|
275
281
|
resetToGamesMenu(): void;
|
|
276
282
|
private resetFinishedLocalGameForNextVisit;
|
|
277
283
|
requestRestartGame(): void;
|
|
@@ -306,6 +312,9 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
306
312
|
private isPromotionMove;
|
|
307
313
|
private animateMove;
|
|
308
314
|
private applyAnimatedMove;
|
|
315
|
+
private activeGameForRun;
|
|
316
|
+
private persistActiveChallengeGame;
|
|
317
|
+
private cloneChallengeGame;
|
|
309
318
|
private playPowerUnlockSound;
|
|
310
319
|
private queueBotTurnIfNeeded;
|
|
311
320
|
private playBotTurn;
|
|
@@ -402,6 +411,9 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
402
411
|
challengeOpeningBot(): ChessimalsChallengeBot;
|
|
403
412
|
challengeMenuBot(): ChessimalsChallengeBot;
|
|
404
413
|
challengeMenuRoundLabel(): string;
|
|
414
|
+
challengeMenuLivesLabel(): string;
|
|
415
|
+
challengeMenuClearedRound(): number;
|
|
416
|
+
private challengeMenuRun;
|
|
405
417
|
challengeBotName(bot: ChessimalsChallengeBot): string;
|
|
406
418
|
challengeBotDifficultyLabel(bot: ChessimalsChallengeBot): string;
|
|
407
419
|
challengeBotStyleLine(bot: ChessimalsChallengeBot): string;
|
|
@@ -429,6 +441,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
429
441
|
challengeRivalVoiceLabel(): string;
|
|
430
442
|
challengeRivalVoiceTitle(): string;
|
|
431
443
|
challengeRivalVoiceBody(): string;
|
|
444
|
+
private challengeVoiceText;
|
|
432
445
|
challengeNextRivalLabel(): string;
|
|
433
446
|
challengeContinueLabel(): string;
|
|
434
447
|
challengeNextRivalHint(): string;
|
|
@@ -108,6 +108,7 @@ export interface ChessimalsChallengeRun {
|
|
|
108
108
|
currentStreak: number;
|
|
109
109
|
botLadder: string[];
|
|
110
110
|
roundResults: ChessimalsChallengeRoundResult[];
|
|
111
|
+
activeGame?: ChessimalsGameState;
|
|
111
112
|
startedAt: string;
|
|
112
113
|
lastEventAt?: string;
|
|
113
114
|
updatedAt: string;
|
package/lib/version.d.ts
CHANGED