valtech-components 4.0.431 → 4.0.433

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.
@@ -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.431";
68
+ readonly valtechComponentsVersion = "4.0.433";
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>;
@@ -6,13 +6,21 @@ interface ChristianityCardPreview {
6
6
  meta: string;
7
7
  body: string;
8
8
  }
9
+ interface ChristianityPreviewTilt {
10
+ rotateX: number;
11
+ rotateY: number;
12
+ shiftX: number;
13
+ shiftY: number;
14
+ }
9
15
  export declare class ChristianityGameComponent {
10
16
  private i18n;
11
17
  protected readonly game: import("@angular/core").WritableSignal<ChristianityGameState>;
12
18
  protected readonly selectedHandCard: import("@angular/core").WritableSignal<string>;
13
19
  protected readonly selectedAttacker: import("@angular/core").WritableSignal<ChristianityCharacterInstance>;
14
20
  protected readonly selectedPreview: import("@angular/core").WritableSignal<ChristianityCardPreview>;
21
+ protected readonly previewTilt: import("@angular/core").WritableSignal<ChristianityPreviewTilt>;
15
22
  protected readonly showHistory: import("@angular/core").WritableSignal<boolean>;
23
+ protected readonly offeringsSeat: import("@angular/core").WritableSignal<ChristianitySeat>;
16
24
  protected readonly player: import("@angular/core").Signal<ChristianityPlayerState>;
17
25
  protected readonly opponent: import("@angular/core").Signal<ChristianityPlayerState>;
18
26
  protected readonly currentPlayer: import("@angular/core").Signal<ChristianityPlayerState>;
@@ -30,6 +38,7 @@ export declare class ChristianityGameComponent {
30
38
  protected hiddenHandCards(count: number): unknown[];
31
39
  protected fanTransform(index: number, total: number, opponent: boolean): string;
32
40
  protected readyOfferings(player: ChristianityPlayerState): number;
41
+ protected totalOfferings(player: ChristianityPlayerState): number;
33
42
  protected canPlay(card: ChristianityCardDefinition): boolean;
34
43
  protected canPlaySelected(): boolean;
35
44
  protected selectHandCard(cardId: string): void;
@@ -42,9 +51,15 @@ export declare class ChristianityGameComponent {
42
51
  protected endTurn(): void;
43
52
  protected resetMock(): void;
44
53
  protected closePreview(): void;
54
+ protected openOfferings(seat: ChristianitySeat): void;
55
+ protected closeOfferings(): void;
56
+ protected tiltPreview(event: PointerEvent): void;
57
+ protected resetPreviewTilt(): void;
45
58
  private cleanupDestroyed;
46
59
  protected inspectLeader(seat: ChristianitySeat): void;
47
60
  protected inspectOffering(offering: ChristianityOfferingInstance): void;
61
+ protected canUseOfferingAbility(offering: ChristianityOfferingInstance, seat: ChristianitySeat): boolean;
62
+ protected useOfferingAbility(offering: ChristianityOfferingInstance, seat: ChristianitySeat): void;
48
63
  protected inspectDeck(): void;
49
64
  protected inspectHandCard(cardId: string): void;
50
65
  protected inspectHistoryCard(cardId: string): void;
@@ -188,6 +188,9 @@ export interface ChristianityCardDefinition {
188
188
  cost: number;
189
189
  attack: number;
190
190
  life: number;
191
+ abilityName?: string;
192
+ abilityText?: string;
193
+ abilityCost?: number;
191
194
  }
192
195
  export interface ChristianityCharacterInstance {
193
196
  instanceId: string;
@@ -207,6 +210,9 @@ export interface ChristianityOfferingInstance {
207
210
  owner: ChristianitySeat;
208
211
  ready: boolean;
209
212
  value: number;
213
+ abilityName?: string;
214
+ abilityText?: string;
215
+ abilityCost?: number;
210
216
  }
211
217
  export interface ChristianityPlayerState {
212
218
  seat: ChristianitySeat;
@@ -229,6 +235,7 @@ export interface ChristianityGameState {
229
235
  turnOwner: ChristianitySeat;
230
236
  revision: number;
231
237
  turnCount: number;
238
+ matchScore: Record<ChristianitySeat, number>;
232
239
  sharedDeck: string[];
233
240
  historyZone: string[];
234
241
  players: Record<ChristianitySeat, ChristianityPlayerState>;
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.431";
5
+ export declare const VERSION = "4.0.433";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.431",
3
+ "version": "4.0.433",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"