valtech-components 4.0.428 → 4.0.429
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/christianity-game.component.mjs +99 -45
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +3 -1
- package/esm2022/lib/components/organisms/mini-games/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +101 -45
- 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 +2 -1
- package/lib/components/organisms/mini-games/types.d.ts +12 -2
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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.429";
|
|
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>;
|
|
@@ -19,7 +19,7 @@ export declare class ChristianityGameComponent {
|
|
|
19
19
|
trackId: string;
|
|
20
20
|
card?: ChristianityCharacterInstance;
|
|
21
21
|
}>;
|
|
22
|
-
protected
|
|
22
|
+
protected readyOfferings(player: ChristianityPlayerState): number;
|
|
23
23
|
protected canPlay(card: ChristianityCardDefinition): boolean;
|
|
24
24
|
protected canPlaySelected(): boolean;
|
|
25
25
|
protected selectHandCard(cardId: string): void;
|
|
@@ -31,6 +31,7 @@ export declare class ChristianityGameComponent {
|
|
|
31
31
|
protected resetMock(): void;
|
|
32
32
|
protected historyNames(): string;
|
|
33
33
|
private cleanupDestroyed;
|
|
34
|
+
private spendOfferings;
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChristianityGameComponent, never>;
|
|
35
36
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChristianityGameComponent, "val-christianity-game", never, {}, {}, never, never, true, never>;
|
|
36
37
|
}
|
|
@@ -180,9 +180,11 @@ export interface ChessimalsGameState {
|
|
|
180
180
|
export type ChristianitySeat = 'P1' | 'P2';
|
|
181
181
|
export type ChristianityGameStatus = 'in_progress' | 'finished';
|
|
182
182
|
export type ChristianityGameMode = 'solo_bot' | 'two_player' | 'local_pass';
|
|
183
|
+
export type ChristianityCardType = 'character' | 'offering';
|
|
183
184
|
export interface ChristianityCardDefinition {
|
|
184
185
|
id: string;
|
|
185
186
|
name: string;
|
|
187
|
+
type: ChristianityCardType;
|
|
186
188
|
cost: number;
|
|
187
189
|
attack: number;
|
|
188
190
|
life: number;
|
|
@@ -198,14 +200,22 @@ export interface ChristianityCharacterInstance {
|
|
|
198
200
|
maxHp: number;
|
|
199
201
|
canAttack: boolean;
|
|
200
202
|
}
|
|
203
|
+
export interface ChristianityOfferingInstance {
|
|
204
|
+
instanceId: string;
|
|
205
|
+
cardId: string;
|
|
206
|
+
name: string;
|
|
207
|
+
owner: ChristianitySeat;
|
|
208
|
+
ready: boolean;
|
|
209
|
+
value: number;
|
|
210
|
+
}
|
|
201
211
|
export interface ChristianityPlayerState {
|
|
202
212
|
seat: ChristianitySeat;
|
|
203
213
|
displayName: string;
|
|
204
214
|
leaderName: string;
|
|
205
215
|
leaderHp: number;
|
|
206
216
|
leaderMaxHp: number;
|
|
207
|
-
|
|
208
|
-
|
|
217
|
+
offerings: ChristianityOfferingInstance[];
|
|
218
|
+
offeringPlayedThisTurn: boolean;
|
|
209
219
|
hand?: string[];
|
|
210
220
|
handCount?: number;
|
|
211
221
|
battleZone: ChristianityCharacterInstance[];
|
package/lib/version.d.ts
CHANGED