valtech-components 4.0.412 → 4.0.413
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 +29 -13
- package/esm2022/lib/components/organisms/mini-games/retro-audio.service.mjs +14 -4
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +42 -16
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +4 -1
- package/lib/components/organisms/mini-games/retro-audio.service.d.ts +2 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ChessimalsAnimalType, ChessimalsBotDifficulty, ChessimalsBotProfile, ChessimalsBotProfileId, ChessimalsBoardSize, ChessimalsGameState, ChessimalsHistoryEntry, ChessimalsLocalMode, ChessimalsMove, ChessimalsPiece, ChessimalsPlayerColor, ChessimalsPosition } from './types';
|
|
4
|
-
import { RangeInputMetadata } from '../../molecules/range-input/types';
|
|
4
|
+
import { RangeInputMetadata, RangeValue } from '../../molecules/range-input/types';
|
|
5
5
|
import { ToggleInputMetadata } from '../../molecules/toggle-input/types';
|
|
6
6
|
import { UserAvatarMetadata } from '../../atoms/user-avatar/types';
|
|
7
7
|
import { ButtonMetadata } from '../../types';
|
|
@@ -145,6 +145,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
145
145
|
ngOnInit(): void;
|
|
146
146
|
protected t(key: string): string;
|
|
147
147
|
private shortUserId;
|
|
148
|
+
private rangeValueToNumber;
|
|
148
149
|
startGame(): void;
|
|
149
150
|
createOnlineGame(): Promise<void>;
|
|
150
151
|
joinOnlineGameByCode(): Promise<void>;
|
|
@@ -164,6 +165,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
164
165
|
closeRulesModal(): void;
|
|
165
166
|
openSettingsModal(): void;
|
|
166
167
|
closeSettingsModal(): void;
|
|
168
|
+
setMusicVolume(value: number | RangeValue): void;
|
|
169
|
+
setSfxVolume(value: number | RangeValue): void;
|
|
167
170
|
selectCell(position: ChessimalsPosition): void;
|
|
168
171
|
private animateMove;
|
|
169
172
|
private applyAnimatedMove;
|
package/lib/version.d.ts
CHANGED