valtech-components 4.0.405 → 4.0.407
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-game.component.mjs +224 -19
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +15 -1
- package/esm2022/lib/components/organisms/mini-games/retro-audio.service.mjs +238 -10
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +472 -28
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +21 -0
- package/lib/components/organisms/mini-games/retro-audio.service.d.ts +32 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/assets/games/chessimals/Game.mp3 +0 -0
- package/src/lib/assets/games/chessimals/bull.wav +0 -0
- package/src/lib/assets/games/chessimals/eagle-cry.wav +0 -0
- package/src/lib/assets/games/chessimals/kangaroo-jump.mp3 +0 -0
- package/src/lib/assets/games/chessimals/lion-roar.wav +0 -0
- package/src/lib/assets/games/chessimals/main-menu.mp3 +0 -0
- package/src/lib/assets/games/chessimals/tada.mp3 +0 -0
- package/src/lib/assets/games/chessimals/you-lose.mp3 +0 -0
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
2
3
|
import { ChessimalsAnimalType, ChessimalsBotDifficulty, ChessimalsBoardSize, ChessimalsGameState, ChessimalsHistoryEntry, ChessimalsLocalMode, ChessimalsMove, ChessimalsPiece, ChessimalsPlayerColor, ChessimalsPosition } from './types';
|
|
4
|
+
import { RangeInputMetadata } from '../../molecules/range-input/types';
|
|
5
|
+
import { ToggleInputMetadata } from '../../molecules/toggle-input/types';
|
|
3
6
|
import { UserAvatarMetadata } from '../../atoms/user-avatar/types';
|
|
4
7
|
import { ButtonMetadata } from '../../types';
|
|
5
8
|
import * as i0 from "@angular/core";
|
|
@@ -67,6 +70,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
67
70
|
readonly selectedPieceId: import("@angular/core").WritableSignal<string>;
|
|
68
71
|
readonly selectedAnimal: import("@angular/core").WritableSignal<ChessimalsAnimalType>;
|
|
69
72
|
readonly isRulesModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
73
|
+
readonly isSettingsModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
70
74
|
readonly isBoardOrienting: import("@angular/core").WritableSignal<boolean>;
|
|
71
75
|
readonly movingPiece: import("@angular/core").WritableSignal<ChessimalsMovingPieceView>;
|
|
72
76
|
readonly moveEffect: import("@angular/core").WritableSignal<ChessimalsMoveEffectView>;
|
|
@@ -90,6 +94,14 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
90
94
|
readonly loggedPlayerName: import("@angular/core").Signal<string>;
|
|
91
95
|
readonly loggedPlayerHandle: import("@angular/core").Signal<string>;
|
|
92
96
|
readonly loggedPlayerAvatarProps: import("@angular/core").Signal<UserAvatarMetadata>;
|
|
97
|
+
readonly musicEnabledControl: FormControl<boolean>;
|
|
98
|
+
readonly sfxEnabledControl: FormControl<boolean>;
|
|
99
|
+
readonly musicVolumeControl: FormControl<number>;
|
|
100
|
+
readonly sfxVolumeControl: FormControl<number>;
|
|
101
|
+
readonly musicToggleProps: import("@angular/core").Signal<ToggleInputMetadata>;
|
|
102
|
+
readonly sfxToggleProps: import("@angular/core").Signal<ToggleInputMetadata>;
|
|
103
|
+
readonly musicVolumeProps: import("@angular/core").Signal<RangeInputMetadata>;
|
|
104
|
+
readonly sfxVolumeProps: import("@angular/core").Signal<RangeInputMetadata>;
|
|
93
105
|
set onlineGameId(value: string | null | undefined);
|
|
94
106
|
miniGamesRoute: string;
|
|
95
107
|
projectionMode: boolean;
|
|
@@ -118,6 +130,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
118
130
|
readonly confirmTitle: import("@angular/core").Signal<string>;
|
|
119
131
|
readonly confirmBody: import("@angular/core").Signal<string>;
|
|
120
132
|
readonly confirmActions: import("@angular/core").Signal<ButtonMetadata[]>;
|
|
133
|
+
readonly rulesActions: import("@angular/core").Signal<ButtonMetadata[]>;
|
|
121
134
|
readonly actionHint: import("@angular/core").Signal<string>;
|
|
122
135
|
constructor();
|
|
123
136
|
ngOnDestroy(): void;
|
|
@@ -141,6 +154,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
141
154
|
private resignGame;
|
|
142
155
|
openRulesModal(): void;
|
|
143
156
|
closeRulesModal(): void;
|
|
157
|
+
openSettingsModal(): void;
|
|
158
|
+
closeSettingsModal(): void;
|
|
144
159
|
selectCell(position: ChessimalsPosition): void;
|
|
145
160
|
private animateMove;
|
|
146
161
|
private applyAnimatedMove;
|
|
@@ -151,7 +166,12 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
151
166
|
private triggerBoardOrientation;
|
|
152
167
|
private shouldKeepBoardOrientationStatic;
|
|
153
168
|
private focusBoardSoon;
|
|
169
|
+
private startChessimalsMenuMusicSoon;
|
|
170
|
+
private startChessimalsGameMusicSoon;
|
|
171
|
+
private syncChessimalsMusicAfterSettingsChange;
|
|
154
172
|
private playMoveSound;
|
|
173
|
+
private playChessimalsOutcomeSound;
|
|
174
|
+
private currentPlayerSideForOutcome;
|
|
155
175
|
private clearReview;
|
|
156
176
|
private showLatestReviewSnapshot;
|
|
157
177
|
private queueMoveEffect;
|
|
@@ -202,6 +222,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
202
222
|
reviewPreviousMove(): void;
|
|
203
223
|
reviewNextMove(): void;
|
|
204
224
|
replayPositionLabel(): string;
|
|
225
|
+
shouldShowFinishedOverlay(): boolean;
|
|
205
226
|
private displayRowIndex;
|
|
206
227
|
private displayColIndex;
|
|
207
228
|
private watchOnlineGame;
|
|
@@ -9,10 +9,27 @@ export declare class RetroAudioService {
|
|
|
9
9
|
private activeMelody?;
|
|
10
10
|
private pausedMelody?;
|
|
11
11
|
private suspendTimer?;
|
|
12
|
+
private readonly activeSamples;
|
|
13
|
+
private sampleMusic?;
|
|
14
|
+
private sampleMusicConfig?;
|
|
15
|
+
private pausedSampleMusic?;
|
|
16
|
+
private readonly defaultsReady;
|
|
12
17
|
readonly enabled: import("@angular/core").WritableSignal<boolean>;
|
|
18
|
+
readonly musicEnabled: import("@angular/core").WritableSignal<boolean>;
|
|
19
|
+
readonly sfxEnabled: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
+
readonly musicVolume: import("@angular/core").WritableSignal<number>;
|
|
21
|
+
readonly sfxVolume: import("@angular/core").WritableSignal<number>;
|
|
22
|
+
private readonly sampleCache;
|
|
13
23
|
constructor();
|
|
14
24
|
setEnabled(value: boolean): void;
|
|
25
|
+
setMusicEnabled(value: boolean): void;
|
|
26
|
+
setSfxEnabled(value: boolean): void;
|
|
27
|
+
setMusicVolume(value: number): void;
|
|
28
|
+
setSfxVolume(value: number): void;
|
|
15
29
|
startMenuMusic(): Promise<void>;
|
|
30
|
+
startChessimalsMenuMusic(): Promise<void>;
|
|
31
|
+
startChessimalsGameMusic(): Promise<void>;
|
|
32
|
+
preloadChessimalsSamples(): void;
|
|
16
33
|
startGameMusic(): Promise<void>;
|
|
17
34
|
startMusic(mode?: MelodyMode): Promise<void>;
|
|
18
35
|
stopMusic(): void;
|
|
@@ -29,15 +46,30 @@ export declare class RetroAudioService {
|
|
|
29
46
|
chessimalsBotMove(): void;
|
|
30
47
|
chessimalsCapture(): void;
|
|
31
48
|
chessimalsPower(power: ChessimalsPower): void;
|
|
49
|
+
private chessimalsPowerFallback;
|
|
50
|
+
private playChessimalsPowerSample;
|
|
51
|
+
private playSample;
|
|
32
52
|
chessimalsVictory(): void;
|
|
53
|
+
chessimalsDefeat(): void;
|
|
54
|
+
private chessimalsVictoryFallback;
|
|
33
55
|
chessimalsJoinRequest(): void;
|
|
34
56
|
chessimalsPowerUnlocked(): void;
|
|
35
57
|
private readEnabled;
|
|
58
|
+
private readBooleanSetting;
|
|
59
|
+
private readVolumeSetting;
|
|
60
|
+
private writeSetting;
|
|
61
|
+
private normalizeVolume;
|
|
62
|
+
private preloadSample;
|
|
63
|
+
private migrateChessimalsAudioDefaults;
|
|
64
|
+
private canPlayMusic;
|
|
65
|
+
private canPlaySfx;
|
|
36
66
|
private ensureContext;
|
|
37
67
|
private menuMelody;
|
|
38
68
|
private savannaPulse;
|
|
39
69
|
private gameMelody;
|
|
40
70
|
private sequence;
|
|
71
|
+
private startSampleMusic;
|
|
72
|
+
private stopSampleMusic;
|
|
41
73
|
private tone;
|
|
42
74
|
private sweep;
|
|
43
75
|
private filteredNoise;
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|