valtech-components 4.0.510 → 4.0.511
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 +183 -32
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +8 -4
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +188 -35
- 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 +27 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -114,7 +114,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
114
114
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
115
115
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
116
116
|
readonly animals: ChessimalsAnimalView[];
|
|
117
|
-
readonly valtechComponentsVersion = "4.0.
|
|
117
|
+
readonly valtechComponentsVersion = "4.0.511";
|
|
118
118
|
readonly screen: import("@angular/core").WritableSignal<"home" | "challenge" | "path" | "game">;
|
|
119
119
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
120
120
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
2
|
import { ChristianityCardRenderModel } from './christianity-card.component';
|
|
3
|
+
import { MiniGameCalloutMetadata } from './mini-game-callout.component';
|
|
4
|
+
import { MiniGameScorePopMetadata } from './mini-game-score-pop.component';
|
|
3
5
|
import { ChristianityCardDefinition, ChristianityCardType, ChristianityCharacterInstance, ChristianityGameState, ChristianityOfferingInstance, ChristianityPlayerState, ChristianitySeat } from './types';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
interface ChristianityCardPreview {
|
|
@@ -8,7 +10,7 @@ interface ChristianityCardPreview {
|
|
|
8
10
|
meta: string;
|
|
9
11
|
body: string;
|
|
10
12
|
cardId?: string;
|
|
11
|
-
source?: 'hand' | 'board' | 'pile' | 'history' | 'offerings';
|
|
13
|
+
source?: 'hand' | 'board' | 'pile' | 'history' | 'offerings' | 'gallery';
|
|
12
14
|
seat?: ChristianitySeat;
|
|
13
15
|
offeringInstanceId?: string;
|
|
14
16
|
}
|
|
@@ -42,6 +44,15 @@ interface ChristianityImpactEvent {
|
|
|
42
44
|
seat: ChristianitySeat;
|
|
43
45
|
target: 'leader' | 'battle' | 'offerings';
|
|
44
46
|
}
|
|
47
|
+
interface ChristianityCombatTrail {
|
|
48
|
+
fromX: string;
|
|
49
|
+
fromY: string;
|
|
50
|
+
midX: string;
|
|
51
|
+
midY: string;
|
|
52
|
+
length: string;
|
|
53
|
+
angle: string;
|
|
54
|
+
tone: 'attack' | 'leader' | 'character';
|
|
55
|
+
}
|
|
45
56
|
interface ChristianityCombatAnimation {
|
|
46
57
|
attackerInstanceId: string;
|
|
47
58
|
attackerSeat: ChristianitySeat;
|
|
@@ -62,6 +73,7 @@ export declare class ChristianityGameComponent {
|
|
|
62
73
|
private readonly impactTimers;
|
|
63
74
|
private combatResolutionTimer;
|
|
64
75
|
private combatClearTimer;
|
|
76
|
+
private combatTrailClearTimer;
|
|
65
77
|
protected readonly game: import("@angular/core").WritableSignal<ChristianityGameState>;
|
|
66
78
|
protected readonly screen: import("@angular/core").WritableSignal<ChristianityScreen>;
|
|
67
79
|
protected readonly catalogLoadState: import("@angular/core").WritableSignal<ChristianityCatalogLoadState>;
|
|
@@ -81,6 +93,7 @@ export declare class ChristianityGameComponent {
|
|
|
81
93
|
protected readonly offeringsSeat: import("@angular/core").WritableSignal<ChristianitySeat>;
|
|
82
94
|
protected readonly impactEvents: import("@angular/core").WritableSignal<ChristianityImpactEvent[]>;
|
|
83
95
|
protected readonly combatAnimation: import("@angular/core").WritableSignal<ChristianityCombatAnimation>;
|
|
96
|
+
protected readonly combatTrail: import("@angular/core").WritableSignal<ChristianityCombatTrail>;
|
|
84
97
|
protected readonly cardCatalog: import("@angular/core").WritableSignal<Record<string, ChristianityCardDefinition>>;
|
|
85
98
|
protected readonly allCatalogCards: import("@angular/core").WritableSignal<ChristianityCardDefinition[]>;
|
|
86
99
|
protected readonly catalogLoaded: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -112,14 +125,19 @@ export declare class ChristianityGameComponent {
|
|
|
112
125
|
} | {
|
|
113
126
|
kind: 'offering';
|
|
114
127
|
offering: ChristianityOfferingInstance;
|
|
128
|
+
} | {
|
|
129
|
+
kind: 'gallery';
|
|
130
|
+
cardId: string;
|
|
115
131
|
})[]>;
|
|
116
132
|
protected readonly canNavigatePreview: import("@angular/core").Signal<boolean>;
|
|
117
133
|
protected readonly previewPositionLabel: import("@angular/core").Signal<string>;
|
|
118
134
|
protected readonly previewAbilities: import("@angular/core").Signal<ChristianityPreviewAbility[]>;
|
|
119
135
|
protected readonly showPreviewAbilityTabs: import("@angular/core").Signal<boolean>;
|
|
136
|
+
protected readonly showPreviewAbilities: import("@angular/core").Signal<boolean>;
|
|
120
137
|
protected readonly canNavigatePreviewAbilities: import("@angular/core").Signal<boolean>;
|
|
121
138
|
protected readonly selectedPreviewAbilityPositionLabel: import("@angular/core").Signal<string>;
|
|
122
139
|
protected readonly selectedPreviewAbility: import("@angular/core").Signal<ChristianityPreviewAbility>;
|
|
140
|
+
protected readonly combatCallout: import("@angular/core").Signal<MiniGameCalloutMetadata>;
|
|
123
141
|
protected readonly splashStatusText: import("@angular/core").Signal<string>;
|
|
124
142
|
protected readonly startFeaturedCards: import("@angular/core").Signal<ChristianityCardDefinition[]>;
|
|
125
143
|
protected readonly futureModes: import("@angular/core").Signal<{
|
|
@@ -235,12 +253,20 @@ export declare class ChristianityGameComponent {
|
|
|
235
253
|
protected setGalleryType(event: Event): void;
|
|
236
254
|
protected tiltPreview(event: PointerEvent): void;
|
|
237
255
|
protected resetPreviewTilt(): void;
|
|
256
|
+
protected impactPopProps(impact: ChristianityImpactEvent): MiniGameScorePopMetadata;
|
|
257
|
+
private impactPosition;
|
|
258
|
+
private impactLabel;
|
|
259
|
+
private impactToneRgb;
|
|
238
260
|
private pushImpactEvent;
|
|
239
261
|
private pushImpactEvents;
|
|
262
|
+
private combatAnimationAttacker;
|
|
263
|
+
private combatAnimationTargetLabel;
|
|
240
264
|
protected isCombatAttacker(card: ChristianityCharacterInstance): boolean;
|
|
241
265
|
protected isCombatCharacterTarget(card: ChristianityCharacterInstance): boolean;
|
|
242
266
|
protected isCombatLeaderTarget(seat: ChristianitySeat): boolean;
|
|
243
267
|
private startCombatAnimation;
|
|
268
|
+
private createCombatTrail;
|
|
269
|
+
private combatAnchor;
|
|
244
270
|
private clearCombatTimers;
|
|
245
271
|
private triggerHistoryPulse;
|
|
246
272
|
private clearBotTurn;
|
package/lib/version.d.ts
CHANGED