valtech-components 4.0.470 → 4.0.471
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/bubble-blitz-game.component.mjs +18 -9
- package/esm2022/lib/components/organisms/mini-games/chessimals-engine.mjs +109 -16
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +18 -9
- package/esm2022/lib/components/organisms/mini-games/christianity-card.component.mjs +260 -0
- package/esm2022/lib/components/organisms/mini-games/christianity-game.component.mjs +2253 -0
- package/esm2022/lib/components/organisms/mini-games/memory-game.component.mjs +18 -9
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +275 -9
- package/esm2022/lib/components/organisms/mini-games/simon-game.component.mjs +18 -9
- package/esm2022/lib/components/organisms/mini-games/types.mjs +1 -1
- package/esm2022/lib/directives/light-ripple.directive.mjs +57 -0
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/mini-games/public-api.mjs +34 -2
- package/esm2022/public-api.mjs +3 -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 +3013 -58
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/bubble-blitz-game.component.d.ts +2 -0
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +3 -1
- package/lib/components/organisms/mini-games/christianity-card.component.d.ts +46 -0
- package/lib/components/organisms/mini-games/christianity-game.component.d.ts +177 -0
- package/lib/components/organisms/mini-games/memory-game.component.d.ts +2 -0
- package/lib/components/organisms/mini-games/simon-game.component.d.ts +2 -0
- package/lib/components/organisms/mini-games/types.d.ts +131 -1
- package/lib/directives/light-ripple.directive.d.ts +8 -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 +2 -0
- package/src/lib/assets/games/christianity/card-symbol.svg +51 -0
- package/src/lib/assets/games/christianity/card-template-reference/front.html +114 -0
- package/src/lib/assets/games/christianity/card-template-reference/front.style.css +352 -0
- package/src/lib/assets/games/christianity/data/01-genesis.bible-reference-suggestions.csv +191 -0
- package/src/lib/assets/games/christianity/data/01-genesis.bible-verses.nbv-open.csv +170 -0
- package/src/lib/assets/games/christianity/data/01-genesis.cards.csv +281 -0
- package/src/lib/assets/games/christianity/data/01-genesis.cards.i18n.csv +281 -0
- package/src/lib/assets/games/christianity/data/01-genesis.cards.json +16453 -0
- package/src/lib/assets/games/christianity/data/01-genesis.unassigned-effects.csv +49 -0
- package/src/lib/assets/games/christianity/data/README.md +40 -0
- package/src/lib/assets/games/christianity/data/data-con-habilides.csv +273 -0
- package/src/lib/assets/games/christianity/data/habilidades-por-tipo.xlsx +0 -0
- package/src/lib/assets/games/christianity/data/listado-edicion.csv +281 -0
- package/src/lib/assets/games/christianity/editions/1/cards/.gitkeep +1 -0
- package/src/lib/assets/games/christianity/editions/1/cards/PLACEHOLDER.png +0 -0
- package/src/lib/assets/games/christianity/editions/README.md +34 -0
- package/src/lib/assets/games/christianity/icons/1-icon.png +0 -0
- package/src/lib/assets/games/christianity/icons/action.png +0 -0
- package/src/lib/assets/games/christianity/icons/character.png +0 -0
- package/src/lib/assets/games/christianity/icons/event.png +0 -0
- package/src/lib/assets/games/christianity/icons/leader.png +0 -0
- package/src/lib/assets/games/christianity/icons/offering.png +0 -0
- package/src/lib/assets/games/christianity/icons/place.png +0 -0
- package/src/lib/assets/games/christianity/icons/tool.png +0 -0
- package/src/lib/assets/games/christianity/icons/wisdom.png +0 -0
- package/src/lib/assets/games/christianity/sources/README.md +16 -0
- package/src/lib/assets/games/christianity/sources/spaonbv_vpl.txt +29102 -0
- package/src/lib/assets/games/christianity/sources/spaonbv_vpl.xml +29104 -0
- package/src/lib/assets/games/christianity/spaonbv.txt +52 -0
|
@@ -44,6 +44,7 @@ export declare class BubbleBlitzGameComponent implements OnDestroy {
|
|
|
44
44
|
readonly animating: import("@angular/core").WritableSignal<boolean>;
|
|
45
45
|
readonly leaderboard: import("@angular/core").WritableSignal<BubbleLeaderboardEntry[]>;
|
|
46
46
|
readonly confirmAction: import("@angular/core").WritableSignal<BubbleConfirmAction>;
|
|
47
|
+
private readonly confirmedAction;
|
|
47
48
|
readonly config: import("@angular/core").Signal<BubbleBlitzModeConfig>;
|
|
48
49
|
readonly feverReady: import("@angular/core").Signal<boolean>;
|
|
49
50
|
readonly feverProgress: import("@angular/core").Signal<number>;
|
|
@@ -73,6 +74,7 @@ export declare class BubbleBlitzGameComponent implements OnDestroy {
|
|
|
73
74
|
requestChangeMode(): void;
|
|
74
75
|
requestChangeGame(): void;
|
|
75
76
|
closeConfirmModal(): void;
|
|
77
|
+
handleConfirmModalDismissed(): void;
|
|
76
78
|
confirmPendingAction(token?: string): void;
|
|
77
79
|
private startTimer;
|
|
78
80
|
private stopTimer;
|
|
@@ -115,7 +115,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
115
115
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
116
116
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
117
117
|
readonly animals: ChessimalsAnimalView[];
|
|
118
|
-
readonly valtechComponentsVersion = "4.0.
|
|
118
|
+
readonly valtechComponentsVersion = "4.0.471";
|
|
119
119
|
readonly screen: import("@angular/core").WritableSignal<"home" | "game">;
|
|
120
120
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
121
121
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -149,6 +149,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
149
149
|
readonly powerCallout: import("@angular/core").Signal<ChessimalsPowerCalloutView>;
|
|
150
150
|
readonly botThinking: import("@angular/core").WritableSignal<boolean>;
|
|
151
151
|
readonly confirmAction: import("@angular/core").WritableSignal<ChessimalsConfirmAction>;
|
|
152
|
+
private readonly confirmedAction;
|
|
152
153
|
readonly onlineJoinCode: import("@angular/core").WritableSignal<string>;
|
|
153
154
|
readonly onlineLoading: import("@angular/core").WritableSignal<boolean>;
|
|
154
155
|
readonly onlineAction: import("@angular/core").WritableSignal<"create" | "join" | "accept" | "reject">;
|
|
@@ -277,6 +278,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
277
278
|
requestChangeGame(): void;
|
|
278
279
|
requestResign(): void;
|
|
279
280
|
closeConfirmModal(): void;
|
|
281
|
+
handleConfirmModalDismissed(): void;
|
|
280
282
|
confirmPendingAction(token?: string): void;
|
|
281
283
|
private resignGame;
|
|
282
284
|
openRulesModal(): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type ChristianityCardRenderType = 'leader' | 'character' | 'offering' | 'wisdom' | 'action' | 'tool' | 'place' | 'event';
|
|
3
|
+
export type ChristianityCardRenderVariant = 'full' | 'table' | 'hand' | 'list' | 'back';
|
|
4
|
+
export interface ChristianityCardRenderModel {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: ChristianityCardRenderType;
|
|
8
|
+
typeLabel: string;
|
|
9
|
+
cost?: number;
|
|
10
|
+
offeringValue?: number;
|
|
11
|
+
attack?: number;
|
|
12
|
+
life?: number;
|
|
13
|
+
currentHp?: number;
|
|
14
|
+
maxHp?: number;
|
|
15
|
+
abilityName?: string;
|
|
16
|
+
abilityText?: string;
|
|
17
|
+
verseText?: string;
|
|
18
|
+
scripture?: string;
|
|
19
|
+
edition?: string;
|
|
20
|
+
collectorNumber?: string;
|
|
21
|
+
editionIcon?: string;
|
|
22
|
+
year?: string;
|
|
23
|
+
author?: string;
|
|
24
|
+
rarity?: 'normal' | 'uncommon' | 'rare' | 'legendary';
|
|
25
|
+
imageUrl?: string;
|
|
26
|
+
frontTemplate?: string;
|
|
27
|
+
statusText?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare class ChristianityCardComponent {
|
|
30
|
+
readonly card: import("@angular/core").InputSignal<ChristianityCardRenderModel>;
|
|
31
|
+
readonly variant: import("@angular/core").InputSignal<ChristianityCardRenderVariant>;
|
|
32
|
+
protected readonly normalizedTypeLabel: import("@angular/core").Signal<string>;
|
|
33
|
+
protected readonly frontTemplate: import("@angular/core").Signal<string>;
|
|
34
|
+
protected readonly isGenesisClassicTemplate: import("@angular/core").Signal<boolean>;
|
|
35
|
+
protected readonly typeIconUrl: import("@angular/core").Signal<string>;
|
|
36
|
+
protected readonly headerMetric: import("@angular/core").Signal<{
|
|
37
|
+
kind: 'number' | 'pips';
|
|
38
|
+
value: number;
|
|
39
|
+
}>;
|
|
40
|
+
protected readonly cardStatsText: import("@angular/core").Signal<string>;
|
|
41
|
+
protected readonly leaderLifeText: import("@angular/core").Signal<string>;
|
|
42
|
+
protected offeringPips(value: number | undefined): unknown[];
|
|
43
|
+
private iconName;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChristianityCardComponent, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChristianityCardComponent, "val-christianity-card", never, { "card": { "alias": "card"; "required": true; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { ChristianityCardRenderModel } from './christianity-card.component';
|
|
3
|
+
import { ChristianityCardDefinition, ChristianityCardType, ChristianityCharacterInstance, ChristianityGameState, ChristianityOfferingInstance, ChristianityPlayerState, ChristianitySeat } from './types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
interface ChristianityCardPreview {
|
|
6
|
+
title: string;
|
|
7
|
+
eyebrow: string;
|
|
8
|
+
meta: string;
|
|
9
|
+
body: string;
|
|
10
|
+
cardId?: string;
|
|
11
|
+
source?: 'hand' | 'board' | 'pile';
|
|
12
|
+
}
|
|
13
|
+
interface ChristianityInfoPanel {
|
|
14
|
+
title: string;
|
|
15
|
+
eyebrow: string;
|
|
16
|
+
meta: string;
|
|
17
|
+
body: string;
|
|
18
|
+
facts: string[];
|
|
19
|
+
}
|
|
20
|
+
interface ChristianityPreviewRule {
|
|
21
|
+
title: string;
|
|
22
|
+
body: string;
|
|
23
|
+
}
|
|
24
|
+
interface ChristianityPreviewTilt {
|
|
25
|
+
rotateX: number;
|
|
26
|
+
rotateY: number;
|
|
27
|
+
shiftX: number;
|
|
28
|
+
shiftY: number;
|
|
29
|
+
}
|
|
30
|
+
type ChristianityGalleryTypeFilter = 'all' | ChristianityCardType;
|
|
31
|
+
type ChristianityScreen = 'splash' | 'home' | 'table';
|
|
32
|
+
type ChristianityCatalogLoadState = 'loading' | 'ready' | 'fallback';
|
|
33
|
+
export declare class ChristianityGameComponent {
|
|
34
|
+
private i18n;
|
|
35
|
+
private readonly bootStartedAt;
|
|
36
|
+
protected readonly game: import("@angular/core").WritableSignal<ChristianityGameState>;
|
|
37
|
+
protected readonly screen: import("@angular/core").WritableSignal<ChristianityScreen>;
|
|
38
|
+
protected readonly catalogLoadState: import("@angular/core").WritableSignal<ChristianityCatalogLoadState>;
|
|
39
|
+
protected readonly selectedHandCard: import("@angular/core").WritableSignal<string>;
|
|
40
|
+
protected readonly selectedAttacker: import("@angular/core").WritableSignal<ChristianityCharacterInstance>;
|
|
41
|
+
protected readonly selectedPreview: import("@angular/core").WritableSignal<ChristianityCardPreview>;
|
|
42
|
+
protected readonly selectedInfo: import("@angular/core").WritableSignal<ChristianityInfoPanel>;
|
|
43
|
+
protected readonly previewTilt: import("@angular/core").WritableSignal<ChristianityPreviewTilt>;
|
|
44
|
+
protected readonly hoveredHandIndex: import("@angular/core").WritableSignal<number>;
|
|
45
|
+
protected readonly draggingCardId: import("@angular/core").WritableSignal<string>;
|
|
46
|
+
protected readonly showHistory: import("@angular/core").WritableSignal<boolean>;
|
|
47
|
+
protected readonly showGallery: import("@angular/core").WritableSignal<boolean>;
|
|
48
|
+
protected readonly offeringsSeat: import("@angular/core").WritableSignal<ChristianitySeat>;
|
|
49
|
+
protected readonly cardCatalog: import("@angular/core").WritableSignal<Record<string, ChristianityCardDefinition>>;
|
|
50
|
+
protected readonly allCatalogCards: import("@angular/core").WritableSignal<ChristianityCardDefinition[]>;
|
|
51
|
+
protected readonly catalogLoaded: import("@angular/core").WritableSignal<boolean>;
|
|
52
|
+
protected readonly gallerySearch: import("@angular/core").WritableSignal<string>;
|
|
53
|
+
protected readonly galleryType: import("@angular/core").WritableSignal<ChristianityGalleryTypeFilter>;
|
|
54
|
+
protected readonly canDropOnBattleSlot: (drag: CdkDrag<string>) => boolean;
|
|
55
|
+
protected readonly canDropOnOfferings: (drag: CdkDrag<string>) => boolean;
|
|
56
|
+
protected readonly player: import("@angular/core").Signal<ChristianityPlayerState>;
|
|
57
|
+
protected readonly opponent: import("@angular/core").Signal<ChristianityPlayerState>;
|
|
58
|
+
protected readonly currentPlayer: import("@angular/core").Signal<ChristianityPlayerState>;
|
|
59
|
+
protected readonly isOwnTurn: import("@angular/core").Signal<boolean>;
|
|
60
|
+
protected readonly hasOpponentGuards: import("@angular/core").Signal<boolean>;
|
|
61
|
+
protected readonly opponentHandCount: import("@angular/core").Signal<number>;
|
|
62
|
+
protected readonly galleryCards: import("@angular/core").Signal<ChristianityCardDefinition[]>;
|
|
63
|
+
protected readonly galleryEditionLabel: import("@angular/core").Signal<string>;
|
|
64
|
+
protected readonly galleryEditionIcon: import("@angular/core").Signal<string>;
|
|
65
|
+
protected readonly galleryTypeOptions: import("@angular/core").Signal<{
|
|
66
|
+
value: ChristianityGalleryTypeFilter;
|
|
67
|
+
label: string;
|
|
68
|
+
}[]>;
|
|
69
|
+
protected readonly splashStatusText: import("@angular/core").Signal<string>;
|
|
70
|
+
protected readonly startFeaturedCards: import("@angular/core").Signal<ChristianityCardDefinition[]>;
|
|
71
|
+
protected readonly futureModes: import("@angular/core").Signal<{
|
|
72
|
+
title: string;
|
|
73
|
+
body: string;
|
|
74
|
+
}[]>;
|
|
75
|
+
protected readonly selectedCardDefinition: import("@angular/core").Signal<ChristianityCardDefinition>;
|
|
76
|
+
protected readonly selectedPreviewCard: import("@angular/core").Signal<ChristianityCardDefinition>;
|
|
77
|
+
protected readonly selectedPreviewRenderCard: import("@angular/core").Signal<ChristianityCardRenderModel>;
|
|
78
|
+
protected readonly previewRule: import("@angular/core").Signal<ChristianityPreviewRule>;
|
|
79
|
+
protected readonly statusText: import("@angular/core").Signal<string>;
|
|
80
|
+
constructor();
|
|
81
|
+
protected t(key: string): string;
|
|
82
|
+
private loadGenesisCatalog;
|
|
83
|
+
private finishSplash;
|
|
84
|
+
private normalizeCatalogCard;
|
|
85
|
+
private formatScripture;
|
|
86
|
+
private createTutorialGame;
|
|
87
|
+
private createTutorialPlayer;
|
|
88
|
+
private createOfferingInstance;
|
|
89
|
+
private createCharacterInstance;
|
|
90
|
+
private findCard;
|
|
91
|
+
private cardSortKey;
|
|
92
|
+
protected cardDefinition(cardId: string): ChristianityCardDefinition;
|
|
93
|
+
private translatedCardText;
|
|
94
|
+
protected cardDisplayName(cardId: string): string;
|
|
95
|
+
protected playerLeaderDisplayName(player: ChristianityPlayerState): string;
|
|
96
|
+
protected catalogStatusLabel(): string;
|
|
97
|
+
protected startFeaturedCardTransform(index: number): string;
|
|
98
|
+
protected cardTypeLabel(card: ChristianityCardDefinition): string;
|
|
99
|
+
protected definitionToRenderCard(card: ChristianityCardDefinition, overrides?: Partial<ChristianityCardRenderModel>): ChristianityCardRenderModel;
|
|
100
|
+
private defaultCardBody;
|
|
101
|
+
protected characterRenderCard(card: ChristianityCharacterInstance): ChristianityCardRenderModel;
|
|
102
|
+
protected leaderRenderCard(player: ChristianityPlayerState): ChristianityCardRenderModel;
|
|
103
|
+
protected offeringRenderCard(offering: ChristianityOfferingInstance): ChristianityCardRenderModel;
|
|
104
|
+
private previewRenderType;
|
|
105
|
+
protected cardTypeIconUrl(card: ChristianityCardDefinition): string;
|
|
106
|
+
protected previewTypeIconUrl(): string;
|
|
107
|
+
protected cardTypeIconUrlForType(type: string): string;
|
|
108
|
+
protected offeringPips(value: number | string | undefined): unknown[];
|
|
109
|
+
protected battleSlots(seat: ChristianitySeat): Array<{
|
|
110
|
+
trackId: string;
|
|
111
|
+
card?: ChristianityCharacterInstance;
|
|
112
|
+
}>;
|
|
113
|
+
protected battleSlotDropId(index: number): string;
|
|
114
|
+
protected dropTargetIds(): string[];
|
|
115
|
+
protected hiddenHandCards(count: number): unknown[];
|
|
116
|
+
protected fanTransform(index: number, total: number, opponent: boolean): string;
|
|
117
|
+
protected handCardZIndex(index: number): number;
|
|
118
|
+
protected setHoveredHandIndex(index: number): void;
|
|
119
|
+
protected clearHoveredHandIndex(): void;
|
|
120
|
+
protected releaseHoveredHand(event: PointerEvent): void;
|
|
121
|
+
private handWaveLift;
|
|
122
|
+
private handWaveScale;
|
|
123
|
+
protected readyOfferings(player: ChristianityPlayerState): number;
|
|
124
|
+
protected totalOfferings(player: ChristianityPlayerState): number;
|
|
125
|
+
protected canPlay(card: ChristianityCardDefinition): boolean;
|
|
126
|
+
protected canPlaySelected(): boolean;
|
|
127
|
+
protected selectedActionLabel(): string;
|
|
128
|
+
protected selectedActionDisabled(): boolean;
|
|
129
|
+
protected canPlaceSelectedCharacter(): boolean;
|
|
130
|
+
protected canPlaceSelectedOffering(): boolean;
|
|
131
|
+
protected isDraggingCharacter(): boolean;
|
|
132
|
+
protected isDraggingOffering(): boolean;
|
|
133
|
+
protected startDraggingCard(cardId: string): void;
|
|
134
|
+
protected endDraggingCard(): void;
|
|
135
|
+
protected dropOnBattleSlot(event: CdkDragDrop<number, unknown, string>, slotIndex: number): void;
|
|
136
|
+
protected dropOnOfferings(event: CdkDragDrop<unknown, unknown, string>): void;
|
|
137
|
+
protected selectHandCard(cardId: string): void;
|
|
138
|
+
protected playSelectedCard(slotIndex?: number): void;
|
|
139
|
+
protected playCardFromHand(cardId: string, slotIndex?: number): void;
|
|
140
|
+
protected handleOfferingPile(seat: ChristianitySeat): void;
|
|
141
|
+
protected selectAttacker(card: ChristianityCharacterInstance): void;
|
|
142
|
+
protected handleOpponentCharacter(card: ChristianityCharacterInstance): void;
|
|
143
|
+
protected handleOpponentLeader(): void;
|
|
144
|
+
protected attackLeader(): void;
|
|
145
|
+
protected attackCharacter(target: ChristianityCharacterInstance): void;
|
|
146
|
+
protected endTurn(): void;
|
|
147
|
+
protected resetMock(): void;
|
|
148
|
+
protected startTutorial(): void;
|
|
149
|
+
protected closePreview(): void;
|
|
150
|
+
protected closeInfo(): void;
|
|
151
|
+
protected openOfferings(seat: ChristianitySeat): void;
|
|
152
|
+
protected openHistory(): void;
|
|
153
|
+
protected closeOfferings(): void;
|
|
154
|
+
protected openGallery(): void;
|
|
155
|
+
protected closeGallery(): void;
|
|
156
|
+
protected setGallerySearch(event: Event): void;
|
|
157
|
+
protected setGalleryType(event: Event): void;
|
|
158
|
+
protected tiltPreview(event: PointerEvent): void;
|
|
159
|
+
protected resetPreviewTilt(): void;
|
|
160
|
+
private cleanupDestroyed;
|
|
161
|
+
protected inspectLeader(seat: ChristianitySeat): void;
|
|
162
|
+
protected inspectOffering(offering: ChristianityOfferingInstance): void;
|
|
163
|
+
protected offeringAbilityText(offering: ChristianityOfferingInstance): string;
|
|
164
|
+
protected canUseOfferingAbility(offering: ChristianityOfferingInstance, seat: ChristianitySeat): boolean;
|
|
165
|
+
protected useOfferingAbility(offering: ChristianityOfferingInstance, seat: ChristianitySeat): void;
|
|
166
|
+
protected inspectDeck(): void;
|
|
167
|
+
protected inspectHowToPlay(): void;
|
|
168
|
+
protected inspectHandCard(cardId: string, fromHand?: boolean): void;
|
|
169
|
+
protected inspectGalleryCard(cardId: string): void;
|
|
170
|
+
protected inspectHistoryCard(cardId: string): void;
|
|
171
|
+
private inspectCharacter;
|
|
172
|
+
private cardPreviewMeta;
|
|
173
|
+
private spendOfferings;
|
|
174
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChristianityGameComponent, never>;
|
|
175
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChristianityGameComponent, "val-christianity-game", never, {}, {}, never, never, true, never>;
|
|
176
|
+
}
|
|
177
|
+
export {};
|
|
@@ -41,6 +41,7 @@ export declare class MemoryGameComponent implements OnDestroy {
|
|
|
41
41
|
readonly lockBoard: import("@angular/core").WritableSignal<boolean>;
|
|
42
42
|
readonly leaderboard: import("@angular/core").WritableSignal<MemoryLeaderboardEntry[]>;
|
|
43
43
|
readonly confirmAction: import("@angular/core").WritableSignal<MemoryConfirmAction>;
|
|
44
|
+
private readonly confirmedAction;
|
|
44
45
|
private timer?;
|
|
45
46
|
private firstPick?;
|
|
46
47
|
readonly profileConfig: import("@angular/core").Signal<{
|
|
@@ -75,6 +76,7 @@ export declare class MemoryGameComponent implements OnDestroy {
|
|
|
75
76
|
requestChangeMode(): void;
|
|
76
77
|
requestChangeGame(): void;
|
|
77
78
|
closeConfirmModal(): void;
|
|
79
|
+
handleConfirmModalDismissed(): void;
|
|
78
80
|
confirmPendingAction(token?: string): void;
|
|
79
81
|
flip(card: MemoryGameCard): void;
|
|
80
82
|
private startTimer;
|
|
@@ -32,6 +32,7 @@ export declare class SimonGameComponent implements OnDestroy {
|
|
|
32
32
|
readonly activePad: import("@angular/core").WritableSignal<string>;
|
|
33
33
|
readonly leaderboard: import("@angular/core").WritableSignal<SimonLeaderboardEntry[]>;
|
|
34
34
|
readonly confirmAction: import("@angular/core").WritableSignal<SimonConfirmAction>;
|
|
35
|
+
private readonly confirmedAction;
|
|
35
36
|
readonly modeConfig: import("@angular/core").Signal<SimonModeConfig>;
|
|
36
37
|
readonly bestRound: import("@angular/core").Signal<number>;
|
|
37
38
|
readonly modeLeaderboard: import("@angular/core").Signal<SimonLeaderboardEntry[]>;
|
|
@@ -52,6 +53,7 @@ export declare class SimonGameComponent implements OnDestroy {
|
|
|
52
53
|
requestChangeMode(): void;
|
|
53
54
|
requestChangeGame(): void;
|
|
54
55
|
closeConfirmModal(): void;
|
|
56
|
+
handleConfirmModalDismissed(): void;
|
|
55
57
|
confirmPendingAction(token?: string): void;
|
|
56
58
|
tap(pad: SimonPad): void;
|
|
57
59
|
scoreText(entry: SimonLeaderboardEntry): string;
|
|
@@ -52,7 +52,7 @@ export type ChessimalsWinReason = 'promotion' | 'elimination' | 'resignation';
|
|
|
52
52
|
export type ChessimalsGameMode = 'local' | 'online';
|
|
53
53
|
export type ChessimalsLocalMode = 'one-device' | 'bot';
|
|
54
54
|
export type ChessimalsBotDifficulty = 'easy' | 'normal' | 'hard';
|
|
55
|
-
export type ChessimalsBotProfileId = 'explorer' | 'impulsive' | 'runner' | 'hunter' | 'guardian' | 'jumper' | 'strategist' | 'predator' | 'sprinter' | 'sentinel';
|
|
55
|
+
export type ChessimalsBotProfileId = 'explorer' | 'impulsive' | 'runner' | 'hunter' | 'guardian' | 'jumper' | 'strategist' | 'predator' | 'sprinter' | 'sentinel' | 'oracle' | 'ambusher' | 'locksmith' | 'storm' | 'matriarch' | 'endgame';
|
|
56
56
|
export type ChessimalsGameStatus = 'waiting' | 'in_progress' | 'finished' | 'expired';
|
|
57
57
|
export interface ChessimalsBotProfile {
|
|
58
58
|
id: ChessimalsBotProfileId;
|
|
@@ -247,3 +247,133 @@ export interface ChessimalsGameState {
|
|
|
247
247
|
moveHistory?: ChessimalsMoveHistoryEntry[];
|
|
248
248
|
online?: ChessimalsOnlineState;
|
|
249
249
|
}
|
|
250
|
+
export type ChristianitySeat = 'P1' | 'P2';
|
|
251
|
+
export type ChristianityGameStatus = 'in_progress' | 'finished';
|
|
252
|
+
export type ChristianityGameMode = 'solo_bot' | 'two_player' | 'local_pass';
|
|
253
|
+
export type ChristianityCardType = 'action' | 'character' | 'event' | 'leader' | 'offering' | 'place' | 'tool' | 'wisdom';
|
|
254
|
+
export type ChristianityCardRarity = 'normal' | 'uncommon' | 'rare' | 'legendary';
|
|
255
|
+
export interface ChristianityCardAbility {
|
|
256
|
+
name?: string;
|
|
257
|
+
text?: string;
|
|
258
|
+
}
|
|
259
|
+
export interface ChristianityCardTranslation {
|
|
260
|
+
name?: string;
|
|
261
|
+
fullName?: string;
|
|
262
|
+
verseText?: string;
|
|
263
|
+
scripture?: string;
|
|
264
|
+
abilityName?: string;
|
|
265
|
+
abilityText?: string;
|
|
266
|
+
abilities?: ChristianityCardAbility[];
|
|
267
|
+
}
|
|
268
|
+
export interface ChristianityCardBibleReference {
|
|
269
|
+
book?: string;
|
|
270
|
+
chapter?: number;
|
|
271
|
+
reference?: string;
|
|
272
|
+
version?: string;
|
|
273
|
+
text?: string;
|
|
274
|
+
}
|
|
275
|
+
export interface ChristianityCardArt {
|
|
276
|
+
legend?: string;
|
|
277
|
+
size?: number;
|
|
278
|
+
positionX?: number;
|
|
279
|
+
positionY?: number;
|
|
280
|
+
imagePath?: string;
|
|
281
|
+
imageUrl?: string;
|
|
282
|
+
mimeType?: string;
|
|
283
|
+
width?: number;
|
|
284
|
+
height?: number;
|
|
285
|
+
source?: string;
|
|
286
|
+
model?: string;
|
|
287
|
+
artistCredit?: string;
|
|
288
|
+
promptId?: string;
|
|
289
|
+
status?: string;
|
|
290
|
+
}
|
|
291
|
+
export interface ChristianityCardDefinition {
|
|
292
|
+
id: string;
|
|
293
|
+
sourceId?: number;
|
|
294
|
+
editionNumber?: number;
|
|
295
|
+
editionIcon?: string;
|
|
296
|
+
name: string;
|
|
297
|
+
fullName?: string;
|
|
298
|
+
type: ChristianityCardType;
|
|
299
|
+
cost?: number;
|
|
300
|
+
offeringValue?: number;
|
|
301
|
+
attack?: number;
|
|
302
|
+
life?: number;
|
|
303
|
+
leaderLife?: number;
|
|
304
|
+
legacyRestriction?: number;
|
|
305
|
+
abilityName?: string;
|
|
306
|
+
abilityText?: string;
|
|
307
|
+
abilityCost?: number;
|
|
308
|
+
abilities?: ChristianityCardAbility[];
|
|
309
|
+
strategy?: string;
|
|
310
|
+
power?: string;
|
|
311
|
+
bible?: ChristianityCardBibleReference;
|
|
312
|
+
art?: ChristianityCardArt;
|
|
313
|
+
imageUrl?: string;
|
|
314
|
+
verseText?: string;
|
|
315
|
+
scripture?: string;
|
|
316
|
+
edition?: string;
|
|
317
|
+
collectorNumber?: string;
|
|
318
|
+
editionSize?: number;
|
|
319
|
+
copyCount?: number;
|
|
320
|
+
author?: string;
|
|
321
|
+
year?: string;
|
|
322
|
+
rarity?: ChristianityCardRarity;
|
|
323
|
+
frontTemplate?: string;
|
|
324
|
+
backTemplate?: string;
|
|
325
|
+
i18n?: Record<string, ChristianityCardTranslation>;
|
|
326
|
+
status?: string;
|
|
327
|
+
sourceNotes?: string;
|
|
328
|
+
}
|
|
329
|
+
export interface ChristianityCharacterInstance {
|
|
330
|
+
instanceId: string;
|
|
331
|
+
cardId: string;
|
|
332
|
+
name: string;
|
|
333
|
+
owner: ChristianitySeat;
|
|
334
|
+
controller: ChristianitySeat;
|
|
335
|
+
slot?: number;
|
|
336
|
+
attack: number;
|
|
337
|
+
currentHp: number;
|
|
338
|
+
maxHp: number;
|
|
339
|
+
canAttack: boolean;
|
|
340
|
+
}
|
|
341
|
+
export interface ChristianityOfferingInstance {
|
|
342
|
+
instanceId: string;
|
|
343
|
+
cardId: string;
|
|
344
|
+
name: string;
|
|
345
|
+
owner: ChristianitySeat;
|
|
346
|
+
ready: boolean;
|
|
347
|
+
value: number;
|
|
348
|
+
abilityName?: string;
|
|
349
|
+
abilityText?: string;
|
|
350
|
+
abilityCost?: number;
|
|
351
|
+
}
|
|
352
|
+
export interface ChristianityPlayerState {
|
|
353
|
+
seat: ChristianitySeat;
|
|
354
|
+
displayName: string;
|
|
355
|
+
avatar?: string;
|
|
356
|
+
avatarColor?: string;
|
|
357
|
+
leaderCardId?: string;
|
|
358
|
+
leaderName: string;
|
|
359
|
+
leaderHp: number;
|
|
360
|
+
leaderMaxHp: number;
|
|
361
|
+
offerings: ChristianityOfferingInstance[];
|
|
362
|
+
offeringPlayedThisTurn: boolean;
|
|
363
|
+
hand?: string[];
|
|
364
|
+
handCount?: number;
|
|
365
|
+
battleZone: ChristianityCharacterInstance[];
|
|
366
|
+
}
|
|
367
|
+
export interface ChristianityGameState {
|
|
368
|
+
gameId: string;
|
|
369
|
+
status: ChristianityGameStatus;
|
|
370
|
+
mode: ChristianityGameMode;
|
|
371
|
+
turnOwner: ChristianitySeat;
|
|
372
|
+
revision: number;
|
|
373
|
+
turnCount: number;
|
|
374
|
+
matchScore: Record<ChristianitySeat, number>;
|
|
375
|
+
sharedDeck: string[];
|
|
376
|
+
historyZone: string[];
|
|
377
|
+
players: Record<ChristianitySeat, ChristianityPlayerState>;
|
|
378
|
+
log: string[];
|
|
379
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class LightRippleDirective {
|
|
3
|
+
private host;
|
|
4
|
+
private renderer;
|
|
5
|
+
createRipple(event: PointerEvent): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LightRippleDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LightRippleDirective, "[valLightRipple]", never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './lib/version';
|
|
2
2
|
export * from './lib/directives/has-permission.directive';
|
|
3
|
+
export * from './lib/directives/light-ripple.directive';
|
|
3
4
|
export * from './lib/components/atoms/avatar/avatar.component';
|
|
4
5
|
export * from './lib/components/atoms/avatar/types';
|
|
5
6
|
export * from './lib/components/atoms/box/box.component';
|
|
@@ -340,6 +341,7 @@ export * from './lib/components/organisms/member-import-modal/member-import-moda
|
|
|
340
341
|
export * from './lib/components/organisms/mini-games/chessimals-engine';
|
|
341
342
|
export * from './lib/components/organisms/mini-games/chessimals-game.component';
|
|
342
343
|
export * from './lib/components/organisms/mini-games/chessimals-online.service';
|
|
344
|
+
export * from './lib/components/organisms/mini-games/christianity-game.component';
|
|
343
345
|
export * from './lib/components/organisms/mini-games/bubble-blitz-game.component';
|
|
344
346
|
export * from './lib/components/organisms/mini-games/memory-game.component';
|
|
345
347
|
export * from './lib/components/organisms/mini-games/mini-game-player-profile.service';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<title>Christianity game symbol</title>
|
|
3
|
+
<path
|
|
4
|
+
d="M256 33C195 92 162 151 158 230C96 259 55 312 21 432C91 455 174 458 256 414C338 458 421 455 491 432C457 312 416 259 354 230C350 151 317 92 256 33Z"
|
|
5
|
+
fill="#8FD7F2"
|
|
6
|
+
stroke="#12699B"
|
|
7
|
+
stroke-width="23"
|
|
8
|
+
stroke-linejoin="round"
|
|
9
|
+
/>
|
|
10
|
+
<path
|
|
11
|
+
d="M256 66C214 112 185 162 180 239C205 233 230 230 256 230C282 230 307 233 332 239C327 162 298 112 256 66Z"
|
|
12
|
+
fill="#101827"
|
|
13
|
+
stroke="#12699B"
|
|
14
|
+
stroke-width="18"
|
|
15
|
+
stroke-linejoin="round"
|
|
16
|
+
/>
|
|
17
|
+
<path
|
|
18
|
+
d="M56 418C104 430 163 431 219 407C194 377 175 341 163 294C112 318 82 356 56 418Z"
|
|
19
|
+
fill="#101827"
|
|
20
|
+
stroke="#12699B"
|
|
21
|
+
stroke-width="18"
|
|
22
|
+
stroke-linejoin="round"
|
|
23
|
+
/>
|
|
24
|
+
<path
|
|
25
|
+
d="M456 418C408 430 349 431 293 407C318 377 337 341 349 294C400 318 430 356 456 418Z"
|
|
26
|
+
fill="#101827"
|
|
27
|
+
stroke="#12699B"
|
|
28
|
+
stroke-width="18"
|
|
29
|
+
stroke-linejoin="round"
|
|
30
|
+
/>
|
|
31
|
+
<path
|
|
32
|
+
d="M181 279C229 267 283 267 331 279C320 321 294 357 256 392C218 357 192 321 181 279Z"
|
|
33
|
+
fill="#101827"
|
|
34
|
+
stroke="#12699B"
|
|
35
|
+
stroke-width="18"
|
|
36
|
+
stroke-linejoin="round"
|
|
37
|
+
/>
|
|
38
|
+
<path
|
|
39
|
+
d="M149 190C151 178 154 166 158 154"
|
|
40
|
+
stroke="#12699B"
|
|
41
|
+
stroke-width="18"
|
|
42
|
+
stroke-linecap="round"
|
|
43
|
+
/>
|
|
44
|
+
<path
|
|
45
|
+
d="M165 134C184 92 215 55 256 21C297 55 328 92 347 134"
|
|
46
|
+
stroke="#8FD7F2"
|
|
47
|
+
stroke-width="16"
|
|
48
|
+
stroke-linecap="round"
|
|
49
|
+
opacity="0.78"
|
|
50
|
+
/>
|
|
51
|
+
</svg>
|