valtech-components 4.0.425 → 4.0.427
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-engine.mjs +22 -33
- package/esm2022/lib/components/organisms/mini-games/christianity-game.component.mjs +505 -0
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +51 -1
- package/esm2022/lib/components/organisms/mini-games/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/mini-games/public-api.mjs +34 -2
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/valtech-components-mini-games.mjs +34 -2
- package/fesm2022/valtech-components-mini-games.mjs.map +1 -1
- package/fesm2022/valtech-components.mjs +574 -34
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +1 -1
- package/lib/components/organisms/mini-games/christianity-game.component.d.ts +35 -0
- package/lib/components/organisms/mini-games/types.d.ts +45 -0
- package/lib/version.d.ts +1 -1
- package/mini-games/public-api.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -65,7 +65,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
65
65
|
readonly botDifficulties: ChessimalsBotDifficulty[];
|
|
66
66
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
67
67
|
readonly animals: ChessimalsAnimalView[];
|
|
68
|
-
readonly valtechComponentsVersion = "4.0.
|
|
68
|
+
readonly valtechComponentsVersion = "4.0.427";
|
|
69
69
|
readonly screen: import("@angular/core").WritableSignal<"home" | "game">;
|
|
70
70
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
71
71
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ChristianityCardDefinition, ChristianityCharacterInstance, ChristianityGameState, ChristianityPlayerState, ChristianitySeat } from './types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChristianityGameComponent {
|
|
4
|
+
private i18n;
|
|
5
|
+
protected readonly game: import("@angular/core").WritableSignal<ChristianityGameState>;
|
|
6
|
+
protected readonly selectedHandCard: import("@angular/core").WritableSignal<string>;
|
|
7
|
+
protected readonly selectedAttacker: import("@angular/core").WritableSignal<ChristianityCharacterInstance>;
|
|
8
|
+
protected readonly showHistory: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
protected readonly player: import("@angular/core").Signal<ChristianityPlayerState>;
|
|
10
|
+
protected readonly opponent: import("@angular/core").Signal<ChristianityPlayerState>;
|
|
11
|
+
protected readonly currentPlayer: import("@angular/core").Signal<ChristianityPlayerState>;
|
|
12
|
+
protected readonly isOwnTurn: import("@angular/core").Signal<boolean>;
|
|
13
|
+
protected readonly opponentHandCount: import("@angular/core").Signal<number>;
|
|
14
|
+
protected readonly statusText: import("@angular/core").Signal<string>;
|
|
15
|
+
constructor();
|
|
16
|
+
protected t(key: string): string;
|
|
17
|
+
protected cardDefinition(cardId: string): ChristianityCardDefinition;
|
|
18
|
+
protected battleSlots(seat: ChristianitySeat): Array<{
|
|
19
|
+
trackId: string;
|
|
20
|
+
card?: ChristianityCharacterInstance;
|
|
21
|
+
}>;
|
|
22
|
+
protected canPlay(card: ChristianityCardDefinition): boolean;
|
|
23
|
+
protected canPlaySelected(): boolean;
|
|
24
|
+
protected selectHandCard(cardId: string): void;
|
|
25
|
+
protected playSelectedCard(): void;
|
|
26
|
+
protected selectAttacker(card: ChristianityCharacterInstance): void;
|
|
27
|
+
protected attackLeader(): void;
|
|
28
|
+
protected attackCharacter(target: ChristianityCharacterInstance): void;
|
|
29
|
+
protected endTurn(): void;
|
|
30
|
+
protected resetMock(): void;
|
|
31
|
+
protected historyNames(): string;
|
|
32
|
+
private cleanupDestroyed;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChristianityGameComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChristianityGameComponent, "val-christianity-game", never, {}, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
@@ -177,3 +177,48 @@ export interface ChessimalsGameState {
|
|
|
177
177
|
moveHistory?: ChessimalsMoveHistoryEntry[];
|
|
178
178
|
online?: ChessimalsOnlineState;
|
|
179
179
|
}
|
|
180
|
+
export type ChristianitySeat = 'P1' | 'P2';
|
|
181
|
+
export type ChristianityGameStatus = 'in_progress' | 'finished';
|
|
182
|
+
export type ChristianityGameMode = 'solo_bot' | 'two_player' | 'local_pass';
|
|
183
|
+
export interface ChristianityCardDefinition {
|
|
184
|
+
id: string;
|
|
185
|
+
name: string;
|
|
186
|
+
cost: number;
|
|
187
|
+
attack: number;
|
|
188
|
+
life: number;
|
|
189
|
+
}
|
|
190
|
+
export interface ChristianityCharacterInstance {
|
|
191
|
+
instanceId: string;
|
|
192
|
+
cardId: string;
|
|
193
|
+
name: string;
|
|
194
|
+
owner: ChristianitySeat;
|
|
195
|
+
controller: ChristianitySeat;
|
|
196
|
+
attack: number;
|
|
197
|
+
currentHp: number;
|
|
198
|
+
maxHp: number;
|
|
199
|
+
canAttack: boolean;
|
|
200
|
+
}
|
|
201
|
+
export interface ChristianityPlayerState {
|
|
202
|
+
seat: ChristianitySeat;
|
|
203
|
+
displayName: string;
|
|
204
|
+
leaderName: string;
|
|
205
|
+
leaderHp: number;
|
|
206
|
+
leaderMaxHp: number;
|
|
207
|
+
maxOfferings: number;
|
|
208
|
+
offeringPoints: number;
|
|
209
|
+
hand?: string[];
|
|
210
|
+
handCount?: number;
|
|
211
|
+
battleZone: ChristianityCharacterInstance[];
|
|
212
|
+
}
|
|
213
|
+
export interface ChristianityGameState {
|
|
214
|
+
gameId: string;
|
|
215
|
+
status: ChristianityGameStatus;
|
|
216
|
+
mode: ChristianityGameMode;
|
|
217
|
+
turnOwner: ChristianitySeat;
|
|
218
|
+
revision: number;
|
|
219
|
+
turnCount: number;
|
|
220
|
+
sharedDeckCount: number;
|
|
221
|
+
historyZone: string[];
|
|
222
|
+
players: Record<ChristianitySeat, ChristianityPlayerState>;
|
|
223
|
+
log: string[];
|
|
224
|
+
}
|
package/lib/version.d.ts
CHANGED
|
@@ -27,6 +27,10 @@ export declare class ChessimalsGamePageComponent {
|
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChessimalsGamePageComponent, never>;
|
|
28
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChessimalsGamePageComponent, "val-chessimals-game-page", never, {}, {}, never, never, true, never>;
|
|
29
29
|
}
|
|
30
|
+
export declare class ChristianityGamePageComponent {
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChristianityGamePageComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChristianityGamePageComponent, "val-christianity-game-page", never, {}, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
30
34
|
export declare class ChessimalsOnlineGamePageComponent {
|
|
31
35
|
private readonly route;
|
|
32
36
|
readonly gameId: string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -340,6 +340,7 @@ export * from './lib/components/organisms/member-import-modal/member-import-moda
|
|
|
340
340
|
export * from './lib/components/organisms/mini-games/chessimals-engine';
|
|
341
341
|
export * from './lib/components/organisms/mini-games/chessimals-game.component';
|
|
342
342
|
export * from './lib/components/organisms/mini-games/chessimals-online.service';
|
|
343
|
+
export * from './lib/components/organisms/mini-games/christianity-game.component';
|
|
343
344
|
export * from './lib/components/organisms/mini-games/bubble-blitz-game.component';
|
|
344
345
|
export * from './lib/components/organisms/mini-games/memory-game.component';
|
|
345
346
|
export * from './lib/components/organisms/mini-games/mini-game-player-profile.service';
|