valtech-components 4.0.405 → 4.0.406
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 +208 -11
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +15 -1
- package/esm2022/lib/components/organisms/mini-games/retro-audio.service.mjs +187 -10
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +405 -20
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +20 -0
- package/lib/components/organisms/mini-games/retro-audio.service.d.ts +27 -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;
|
|
@@ -141,6 +153,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
141
153
|
private resignGame;
|
|
142
154
|
openRulesModal(): void;
|
|
143
155
|
closeRulesModal(): void;
|
|
156
|
+
openSettingsModal(): void;
|
|
157
|
+
closeSettingsModal(): void;
|
|
144
158
|
selectCell(position: ChessimalsPosition): void;
|
|
145
159
|
private animateMove;
|
|
146
160
|
private applyAnimatedMove;
|
|
@@ -151,7 +165,12 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
151
165
|
private triggerBoardOrientation;
|
|
152
166
|
private shouldKeepBoardOrientationStatic;
|
|
153
167
|
private focusBoardSoon;
|
|
168
|
+
private startChessimalsMenuMusicSoon;
|
|
169
|
+
private startChessimalsGameMusicSoon;
|
|
170
|
+
private syncChessimalsMusicAfterSettingsChange;
|
|
154
171
|
private playMoveSound;
|
|
172
|
+
private playChessimalsOutcomeSound;
|
|
173
|
+
private currentPlayerSideForOutcome;
|
|
155
174
|
private clearReview;
|
|
156
175
|
private showLatestReviewSnapshot;
|
|
157
176
|
private queueMoveEffect;
|
|
@@ -202,6 +221,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
202
221
|
reviewPreviousMove(): void;
|
|
203
222
|
reviewNextMove(): void;
|
|
204
223
|
replayPositionLabel(): string;
|
|
224
|
+
shouldShowFinishedOverlay(): boolean;
|
|
205
225
|
private displayRowIndex;
|
|
206
226
|
private displayColIndex;
|
|
207
227
|
private watchOnlineGame;
|
|
@@ -9,10 +9,24 @@ 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?;
|
|
12
16
|
readonly enabled: import("@angular/core").WritableSignal<boolean>;
|
|
17
|
+
readonly musicEnabled: import("@angular/core").WritableSignal<boolean>;
|
|
18
|
+
readonly sfxEnabled: import("@angular/core").WritableSignal<boolean>;
|
|
19
|
+
readonly musicVolume: import("@angular/core").WritableSignal<number>;
|
|
20
|
+
readonly sfxVolume: import("@angular/core").WritableSignal<number>;
|
|
13
21
|
constructor();
|
|
14
22
|
setEnabled(value: boolean): void;
|
|
23
|
+
setMusicEnabled(value: boolean): void;
|
|
24
|
+
setSfxEnabled(value: boolean): void;
|
|
25
|
+
setMusicVolume(value: number): void;
|
|
26
|
+
setSfxVolume(value: number): void;
|
|
15
27
|
startMenuMusic(): Promise<void>;
|
|
28
|
+
startChessimalsMenuMusic(): Promise<void>;
|
|
29
|
+
startChessimalsGameMusic(): Promise<void>;
|
|
16
30
|
startGameMusic(): Promise<void>;
|
|
17
31
|
startMusic(mode?: MelodyMode): Promise<void>;
|
|
18
32
|
stopMusic(): void;
|
|
@@ -29,15 +43,28 @@ export declare class RetroAudioService {
|
|
|
29
43
|
chessimalsBotMove(): void;
|
|
30
44
|
chessimalsCapture(): void;
|
|
31
45
|
chessimalsPower(power: ChessimalsPower): void;
|
|
46
|
+
private chessimalsPowerFallback;
|
|
47
|
+
private playChessimalsPowerSample;
|
|
48
|
+
private playSample;
|
|
32
49
|
chessimalsVictory(): void;
|
|
50
|
+
chessimalsDefeat(): void;
|
|
51
|
+
private chessimalsVictoryFallback;
|
|
33
52
|
chessimalsJoinRequest(): void;
|
|
34
53
|
chessimalsPowerUnlocked(): void;
|
|
35
54
|
private readEnabled;
|
|
55
|
+
private readBooleanSetting;
|
|
56
|
+
private readVolumeSetting;
|
|
57
|
+
private writeSetting;
|
|
58
|
+
private normalizeVolume;
|
|
59
|
+
private canPlayMusic;
|
|
60
|
+
private canPlaySfx;
|
|
36
61
|
private ensureContext;
|
|
37
62
|
private menuMelody;
|
|
38
63
|
private savannaPulse;
|
|
39
64
|
private gameMelody;
|
|
40
65
|
private sequence;
|
|
66
|
+
private startSampleMusic;
|
|
67
|
+
private stopSampleMusic;
|
|
41
68
|
private tone;
|
|
42
69
|
private sweep;
|
|
43
70
|
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
|