valtech-components 4.0.437 → 4.0.439
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 +9 -18
- package/esm2022/lib/components/organisms/mini-games/chessimals-challenge-progress.service.mjs +145 -0
- package/esm2022/lib/components/organisms/mini-games/chessimals-engine.mjs +16 -109
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +540 -22
- package/esm2022/lib/components/organisms/mini-games/memory-game.component.mjs +9 -18
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +89 -147
- package/esm2022/lib/components/organisms/mini-games/simon-game.component.mjs +9 -18
- 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 +2 -34
- package/esm2022/public-api.mjs +1 -3
- package/fesm2022/valtech-components-mini-games.mjs +2 -34
- package/fesm2022/valtech-components-mini-games.mjs.map +1 -1
- package/fesm2022/valtech-components.mjs +807 -1574
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/bubble-blitz-game.component.d.ts +0 -2
- package/lib/components/organisms/mini-games/chessimals-challenge-progress.service.d.ts +30 -0
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +36 -4
- package/lib/components/organisms/mini-games/memory-game.component.d.ts +0 -2
- package/lib/components/organisms/mini-games/simon-game.component.d.ts +0 -2
- package/lib/components/organisms/mini-games/types.d.ts +57 -65
- package/lib/version.d.ts +1 -1
- package/mini-games/public-api.d.ts +0 -4
- package/package.json +1 -1
- package/public-api.d.ts +0 -2
- package/esm2022/lib/components/organisms/mini-games/christianity-game.component.mjs +0 -1195
- package/esm2022/lib/directives/light-ripple.directive.mjs +0 -57
- package/lib/components/organisms/mini-games/christianity-game.component.d.ts +0 -84
- package/lib/directives/light-ripple.directive.d.ts +0 -8
|
@@ -44,7 +44,6 @@ 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;
|
|
48
47
|
readonly config: import("@angular/core").Signal<BubbleBlitzModeConfig>;
|
|
49
48
|
readonly feverReady: import("@angular/core").Signal<boolean>;
|
|
50
49
|
readonly feverProgress: import("@angular/core").Signal<number>;
|
|
@@ -74,7 +73,6 @@ export declare class BubbleBlitzGameComponent implements OnDestroy {
|
|
|
74
73
|
requestChangeMode(): void;
|
|
75
74
|
requestChangeGame(): void;
|
|
76
75
|
closeConfirmModal(): void;
|
|
77
|
-
handleConfirmModalDismissed(): void;
|
|
78
76
|
confirmPendingAction(token?: string): void;
|
|
79
77
|
private startTimer;
|
|
80
78
|
private stopTimer;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ChessimalsChallengeRoundStats, ChessimalsChallengeRun, ChessimalsChallengeStats } from './types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChessimalsChallengeProgressService {
|
|
5
|
+
private readonly firebaseAuth;
|
|
6
|
+
private readonly firestore;
|
|
7
|
+
private readonly firebase;
|
|
8
|
+
get currentUid(): string | undefined;
|
|
9
|
+
watchStats(): Observable<ChessimalsChallengeStats | undefined>;
|
|
10
|
+
watchRecentRuns(limitCount?: number): Observable<ChessimalsChallengeRun[]>;
|
|
11
|
+
saveRun(run: ChessimalsChallengeRun): Promise<void>;
|
|
12
|
+
recordChallengeStarted(run: ChessimalsChallengeRun): Promise<void>;
|
|
13
|
+
applyRoundResult(args: {
|
|
14
|
+
run: ChessimalsChallengeRun;
|
|
15
|
+
roundReached: number;
|
|
16
|
+
won: boolean;
|
|
17
|
+
completed: boolean;
|
|
18
|
+
roundStats: ChessimalsChallengeRoundStats;
|
|
19
|
+
}): Promise<void>;
|
|
20
|
+
emptyStats(): ChessimalsChallengeStats;
|
|
21
|
+
private readStats;
|
|
22
|
+
private normalizeStats;
|
|
23
|
+
private ensureUser;
|
|
24
|
+
private statsRef;
|
|
25
|
+
private runRef;
|
|
26
|
+
private runsPath;
|
|
27
|
+
private withoutUndefined;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChessimalsChallengeProgressService, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChessimalsChallengeProgressService>;
|
|
30
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { ChessimalsAnimalType, ChessimalsBotDifficulty, ChessimalsBotProfile, ChessimalsBotProfileId, ChessimalsBoardSize, ChessimalsGameState, ChessimalsHistoryEntry, ChessimalsLocalMode, ChessimalsMove, ChessimalsPiece, ChessimalsPlayerColor, ChessimalsPosition } from './types';
|
|
3
|
+
import { ChessimalsAnimalType, ChessimalsBotDifficulty, ChessimalsBotProfile, ChessimalsBotProfileId, ChessimalsBoardSize, ChessimalsChallengeBot, ChessimalsChallengeRoundStats, ChessimalsChallengeRun, ChessimalsChallengeStats, ChessimalsGameState, ChessimalsHistoryEntry, ChessimalsLocalMode, ChessimalsMove, ChessimalsPiece, ChessimalsPlayerColor, ChessimalsPosition } from './types';
|
|
4
4
|
import { RangeInputMetadata, RangeValue } from '../../molecules/range-input/types';
|
|
5
5
|
import { ToggleInputMetadata } from '../../molecules/toggle-input/types';
|
|
6
6
|
import { UserAvatarMetadata } from '../../atoms/user-avatar/types';
|
|
@@ -13,6 +13,7 @@ interface ChessimalsAnimalView {
|
|
|
13
13
|
}
|
|
14
14
|
type ChessimalsConfirmAction = 'restart' | 'mode' | 'games' | 'resign';
|
|
15
15
|
type ChessimalsRematchState = 'none' | 'requested' | 'incoming';
|
|
16
|
+
type ChessimalsChallengePhase = 'idle' | 'playing' | 'between' | 'completed' | 'failed';
|
|
16
17
|
interface ChessimalsMovingPieceView {
|
|
17
18
|
color: ChessimalsPlayerColor;
|
|
18
19
|
fromRow: number;
|
|
@@ -38,6 +39,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
38
39
|
private readonly i18n;
|
|
39
40
|
private readonly audio;
|
|
40
41
|
private readonly online;
|
|
42
|
+
private readonly challengeProgress;
|
|
41
43
|
private readonly router;
|
|
42
44
|
private readonly toast;
|
|
43
45
|
private readonly auth;
|
|
@@ -50,6 +52,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
50
52
|
private readonly routeSubscription;
|
|
51
53
|
private onlineSubscription;
|
|
52
54
|
private historySubscription;
|
|
55
|
+
private challengeStatsSubscription;
|
|
56
|
+
private challengeRunsSubscription;
|
|
53
57
|
private historyUid;
|
|
54
58
|
private historyWatchTimer;
|
|
55
59
|
private moveEffectStartTimer;
|
|
@@ -59,13 +63,15 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
59
63
|
private openingOnlineGameId;
|
|
60
64
|
private openedOnlineGameId;
|
|
61
65
|
private lastOutcomeSoundKey;
|
|
66
|
+
private lastChallengeHandledKey;
|
|
62
67
|
private boardAnchor?;
|
|
63
68
|
readonly boardSizes: ChessimalsBoardSize[];
|
|
64
69
|
readonly localModes: ChessimalsLocalMode[];
|
|
65
70
|
readonly botDifficulties: ChessimalsBotDifficulty[];
|
|
66
71
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
72
|
+
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
67
73
|
readonly animals: ChessimalsAnimalView[];
|
|
68
|
-
readonly valtechComponentsVersion = "4.0.
|
|
74
|
+
readonly valtechComponentsVersion = "4.0.439";
|
|
69
75
|
readonly screen: import("@angular/core").WritableSignal<"home" | "game">;
|
|
70
76
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
71
77
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -73,6 +79,14 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
73
79
|
readonly selectedBotProfileId: import("@angular/core").WritableSignal<ChessimalsBotProfileId>;
|
|
74
80
|
readonly gameBotProfileId: import("@angular/core").WritableSignal<ChessimalsBotProfileId>;
|
|
75
81
|
readonly game: import("@angular/core").WritableSignal<ChessimalsGameState>;
|
|
82
|
+
readonly challengePhase: import("@angular/core").WritableSignal<ChessimalsChallengePhase>;
|
|
83
|
+
readonly challengeRun: import("@angular/core").WritableSignal<ChessimalsChallengeRun>;
|
|
84
|
+
readonly challengeStats: import("@angular/core").WritableSignal<ChessimalsChallengeStats>;
|
|
85
|
+
readonly challengeHistory: import("@angular/core").WritableSignal<ChessimalsChallengeRun[]>;
|
|
86
|
+
readonly challengeLastWon: import("@angular/core").WritableSignal<boolean>;
|
|
87
|
+
readonly challengeLastBot: import("@angular/core").WritableSignal<ChessimalsChallengeBot>;
|
|
88
|
+
readonly challengeLastRoundStats: import("@angular/core").WritableSignal<ChessimalsChallengeRoundStats>;
|
|
89
|
+
readonly challengeNewRecord: import("@angular/core").WritableSignal<boolean>;
|
|
76
90
|
readonly selectedPieceId: import("@angular/core").WritableSignal<string>;
|
|
77
91
|
readonly selectedAnimal: import("@angular/core").WritableSignal<ChessimalsAnimalType>;
|
|
78
92
|
readonly isRulesModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -86,7 +100,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
86
100
|
readonly moveTrail: import("@angular/core").Signal<ChessimalsMoveTrailView>;
|
|
87
101
|
readonly botThinking: import("@angular/core").WritableSignal<boolean>;
|
|
88
102
|
readonly confirmAction: import("@angular/core").WritableSignal<ChessimalsConfirmAction>;
|
|
89
|
-
private readonly confirmedAction;
|
|
90
103
|
readonly onlineJoinCode: import("@angular/core").WritableSignal<string>;
|
|
91
104
|
readonly onlineLoading: import("@angular/core").WritableSignal<boolean>;
|
|
92
105
|
readonly onlineAction: import("@angular/core").WritableSignal<"create" | "join" | "accept" | "reject">;
|
|
@@ -115,6 +128,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
115
128
|
readonly availableBotProfiles: import("@angular/core").Signal<ChessimalsBotProfile[]>;
|
|
116
129
|
readonly selectedBotProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
|
|
117
130
|
readonly gameBotProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
|
|
131
|
+
readonly activeChallengeBot: import("@angular/core").Signal<ChessimalsChallengeBot>;
|
|
118
132
|
set onlineGameId(value: string | null | undefined);
|
|
119
133
|
miniGamesRoute: string;
|
|
120
134
|
projectionMode: boolean;
|
|
@@ -186,7 +200,12 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
186
200
|
protected t(key: string): string;
|
|
187
201
|
private shortUserId;
|
|
188
202
|
private rangeValueToNumber;
|
|
203
|
+
startChallenge(): void;
|
|
204
|
+
continueChallenge(): void;
|
|
205
|
+
private startChallengeRound;
|
|
189
206
|
startGame(): void;
|
|
207
|
+
private handleChallengeRoundFinished;
|
|
208
|
+
private abandonChallengeIfNeeded;
|
|
190
209
|
startTutorial(): void;
|
|
191
210
|
createOnlineGame(): Promise<void>;
|
|
192
211
|
joinOnlineGameByCode(): Promise<void>;
|
|
@@ -201,7 +220,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
201
220
|
requestChangeGame(): void;
|
|
202
221
|
requestResign(): void;
|
|
203
222
|
closeConfirmModal(): void;
|
|
204
|
-
handleConfirmModalDismissed(): void;
|
|
205
223
|
confirmPendingAction(token?: string): void;
|
|
206
224
|
private resignGame;
|
|
207
225
|
openRulesModal(): void;
|
|
@@ -293,6 +311,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
293
311
|
requestOnlineRematch(): Promise<void>;
|
|
294
312
|
private queueHistoryWatch;
|
|
295
313
|
private watchOnlineHistory;
|
|
314
|
+
private watchChallengeStats;
|
|
296
315
|
unlockedLabel(color: ChessimalsPlayerColor): string;
|
|
297
316
|
localModeLabel(mode: ChessimalsLocalMode): string;
|
|
298
317
|
localModeDescription(mode: ChessimalsLocalMode): string;
|
|
@@ -301,6 +320,19 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
301
320
|
botProfileLabel(profile: ChessimalsBotProfile): string;
|
|
302
321
|
botProfileDescription(profile: ChessimalsBotProfile): string;
|
|
303
322
|
botProfileTendency(profile: ChessimalsBotProfile): string;
|
|
323
|
+
botProfileAvatar(profileId: ChessimalsBotProfileId): string;
|
|
324
|
+
challengeOpeningBot(): ChessimalsChallengeBot;
|
|
325
|
+
challengeBotName(bot: ChessimalsChallengeBot): string;
|
|
326
|
+
challengeRunStatusLabel(run: ChessimalsChallengeRun): string;
|
|
327
|
+
challengeRunLine(run: ChessimalsChallengeRun): string;
|
|
328
|
+
isChallengeActive(): boolean;
|
|
329
|
+
challengeRoundLabel(): string;
|
|
330
|
+
challengeLivesLabel(): string;
|
|
331
|
+
challengeOutcomeTitle(): string;
|
|
332
|
+
challengeOutcomeBody(): string;
|
|
333
|
+
challengeHasNewRecord(): boolean;
|
|
334
|
+
totalChallengePowers(stats?: ChessimalsChallengeRoundStats): number;
|
|
335
|
+
private createChallengeRoundStats;
|
|
304
336
|
animalLabel(type: ChessimalsAnimalType): string;
|
|
305
337
|
canReviewPrevious(): boolean;
|
|
306
338
|
canReviewNext(): boolean;
|
|
@@ -41,7 +41,6 @@ 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;
|
|
45
44
|
private timer?;
|
|
46
45
|
private firstPick?;
|
|
47
46
|
readonly profileConfig: import("@angular/core").Signal<{
|
|
@@ -76,7 +75,6 @@ export declare class MemoryGameComponent implements OnDestroy {
|
|
|
76
75
|
requestChangeMode(): void;
|
|
77
76
|
requestChangeGame(): void;
|
|
78
77
|
closeConfirmModal(): void;
|
|
79
|
-
handleConfirmModalDismissed(): void;
|
|
80
78
|
confirmPendingAction(token?: string): void;
|
|
81
79
|
flip(card: MemoryGameCard): void;
|
|
82
80
|
private startTimer;
|
|
@@ -32,7 +32,6 @@ 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;
|
|
36
35
|
readonly modeConfig: import("@angular/core").Signal<SimonModeConfig>;
|
|
37
36
|
readonly bestRound: import("@angular/core").Signal<number>;
|
|
38
37
|
readonly modeLeaderboard: import("@angular/core").Signal<SimonLeaderboardEntry[]>;
|
|
@@ -53,7 +52,6 @@ export declare class SimonGameComponent implements OnDestroy {
|
|
|
53
52
|
requestChangeMode(): void;
|
|
54
53
|
requestChangeGame(): void;
|
|
55
54
|
closeConfirmModal(): void;
|
|
56
|
-
handleConfirmModalDismissed(): void;
|
|
57
55
|
confirmPendingAction(token?: string): void;
|
|
58
56
|
tap(pad: SimonPad): void;
|
|
59
57
|
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';
|
|
56
56
|
export type ChessimalsGameStatus = 'waiting' | 'in_progress' | 'finished' | 'expired';
|
|
57
57
|
export interface ChessimalsBotProfile {
|
|
58
58
|
id: ChessimalsBotProfileId;
|
|
@@ -61,6 +61,62 @@ export interface ChessimalsBotProfile {
|
|
|
61
61
|
labelKey: string;
|
|
62
62
|
descriptionKey: string;
|
|
63
63
|
}
|
|
64
|
+
export type ChessimalsChallengeStatus = 'active' | 'completed' | 'failed' | 'abandoned';
|
|
65
|
+
export interface ChessimalsChallengeBot {
|
|
66
|
+
id: string;
|
|
67
|
+
round: number;
|
|
68
|
+
profileId: ChessimalsBotProfileId;
|
|
69
|
+
difficulty: ChessimalsBotDifficulty;
|
|
70
|
+
boardSize: ChessimalsBoardSize;
|
|
71
|
+
introKey: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ChessimalsChallengeRoundStats {
|
|
74
|
+
powersUsed: Record<ChessimalsAnimalType, number>;
|
|
75
|
+
powerCaptures: number;
|
|
76
|
+
promotions: number;
|
|
77
|
+
captures: number;
|
|
78
|
+
moves: number;
|
|
79
|
+
}
|
|
80
|
+
export interface ChessimalsChallengeRoundResult {
|
|
81
|
+
round: number;
|
|
82
|
+
botId: string;
|
|
83
|
+
profileId: ChessimalsBotProfileId;
|
|
84
|
+
won: boolean;
|
|
85
|
+
livesRemaining: number;
|
|
86
|
+
stats: ChessimalsChallengeRoundStats;
|
|
87
|
+
finishedAt: string;
|
|
88
|
+
}
|
|
89
|
+
export interface ChessimalsChallengeRun {
|
|
90
|
+
id: string;
|
|
91
|
+
userId?: string;
|
|
92
|
+
status: ChessimalsChallengeStatus;
|
|
93
|
+
livesStart: 3;
|
|
94
|
+
livesRemaining: number;
|
|
95
|
+
currentRound: number;
|
|
96
|
+
wins: number;
|
|
97
|
+
losses: number;
|
|
98
|
+
bestStreakInRun: number;
|
|
99
|
+
currentStreak: number;
|
|
100
|
+
botLadder: string[];
|
|
101
|
+
roundResults: ChessimalsChallengeRoundResult[];
|
|
102
|
+
startedAt: string;
|
|
103
|
+
updatedAt: string;
|
|
104
|
+
finishedAt?: string;
|
|
105
|
+
}
|
|
106
|
+
export interface ChessimalsChallengeStats {
|
|
107
|
+
userId?: string;
|
|
108
|
+
challengesPlayed: number;
|
|
109
|
+
challengesCompleted: number;
|
|
110
|
+
bestWinStreak: number;
|
|
111
|
+
bestRoundReached: number;
|
|
112
|
+
totalWins: number;
|
|
113
|
+
totalLosses: number;
|
|
114
|
+
botsDefeated: number;
|
|
115
|
+
powersUsed: Record<ChessimalsAnimalType, number>;
|
|
116
|
+
powerCaptures: number;
|
|
117
|
+
promotions: number;
|
|
118
|
+
updatedAt?: string;
|
|
119
|
+
}
|
|
64
120
|
export interface ChessimalsPosition {
|
|
65
121
|
row: number;
|
|
66
122
|
col: number;
|
|
@@ -177,67 +233,3 @@ export interface ChessimalsGameState {
|
|
|
177
233
|
moveHistory?: ChessimalsMoveHistoryEntry[];
|
|
178
234
|
online?: ChessimalsOnlineState;
|
|
179
235
|
}
|
|
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 type ChristianityCardType = 'character' | 'offering';
|
|
184
|
-
export interface ChristianityCardDefinition {
|
|
185
|
-
id: string;
|
|
186
|
-
name: string;
|
|
187
|
-
type: ChristianityCardType;
|
|
188
|
-
cost: number;
|
|
189
|
-
attack: number;
|
|
190
|
-
life: number;
|
|
191
|
-
abilityName?: string;
|
|
192
|
-
abilityText?: string;
|
|
193
|
-
abilityCost?: number;
|
|
194
|
-
}
|
|
195
|
-
export interface ChristianityCharacterInstance {
|
|
196
|
-
instanceId: string;
|
|
197
|
-
cardId: string;
|
|
198
|
-
name: string;
|
|
199
|
-
owner: ChristianitySeat;
|
|
200
|
-
controller: ChristianitySeat;
|
|
201
|
-
attack: number;
|
|
202
|
-
currentHp: number;
|
|
203
|
-
maxHp: number;
|
|
204
|
-
canAttack: boolean;
|
|
205
|
-
}
|
|
206
|
-
export interface ChristianityOfferingInstance {
|
|
207
|
-
instanceId: string;
|
|
208
|
-
cardId: string;
|
|
209
|
-
name: string;
|
|
210
|
-
owner: ChristianitySeat;
|
|
211
|
-
ready: boolean;
|
|
212
|
-
value: number;
|
|
213
|
-
abilityName?: string;
|
|
214
|
-
abilityText?: string;
|
|
215
|
-
abilityCost?: number;
|
|
216
|
-
}
|
|
217
|
-
export interface ChristianityPlayerState {
|
|
218
|
-
seat: ChristianitySeat;
|
|
219
|
-
displayName: string;
|
|
220
|
-
avatar?: string;
|
|
221
|
-
avatarColor?: string;
|
|
222
|
-
leaderName: string;
|
|
223
|
-
leaderHp: number;
|
|
224
|
-
leaderMaxHp: number;
|
|
225
|
-
offerings: ChristianityOfferingInstance[];
|
|
226
|
-
offeringPlayedThisTurn: boolean;
|
|
227
|
-
hand?: string[];
|
|
228
|
-
handCount?: number;
|
|
229
|
-
battleZone: ChristianityCharacterInstance[];
|
|
230
|
-
}
|
|
231
|
-
export interface ChristianityGameState {
|
|
232
|
-
gameId: string;
|
|
233
|
-
status: ChristianityGameStatus;
|
|
234
|
-
mode: ChristianityGameMode;
|
|
235
|
-
turnOwner: ChristianitySeat;
|
|
236
|
-
revision: number;
|
|
237
|
-
turnCount: number;
|
|
238
|
-
matchScore: Record<ChristianitySeat, number>;
|
|
239
|
-
sharedDeck: string[];
|
|
240
|
-
historyZone: string[];
|
|
241
|
-
players: Record<ChristianitySeat, ChristianityPlayerState>;
|
|
242
|
-
log: string[];
|
|
243
|
-
}
|
package/lib/version.d.ts
CHANGED
|
@@ -27,10 +27,6 @@ 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
|
-
}
|
|
34
30
|
export declare class ChessimalsOnlineGamePageComponent {
|
|
35
31
|
private readonly route;
|
|
36
32
|
readonly gameId: string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './lib/version';
|
|
2
2
|
export * from './lib/directives/has-permission.directive';
|
|
3
|
-
export * from './lib/directives/light-ripple.directive';
|
|
4
3
|
export * from './lib/components/atoms/avatar/avatar.component';
|
|
5
4
|
export * from './lib/components/atoms/avatar/types';
|
|
6
5
|
export * from './lib/components/atoms/box/box.component';
|
|
@@ -341,7 +340,6 @@ export * from './lib/components/organisms/member-import-modal/member-import-moda
|
|
|
341
340
|
export * from './lib/components/organisms/mini-games/chessimals-engine';
|
|
342
341
|
export * from './lib/components/organisms/mini-games/chessimals-game.component';
|
|
343
342
|
export * from './lib/components/organisms/mini-games/chessimals-online.service';
|
|
344
|
-
export * from './lib/components/organisms/mini-games/christianity-game.component';
|
|
345
343
|
export * from './lib/components/organisms/mini-games/bubble-blitz-game.component';
|
|
346
344
|
export * from './lib/components/organisms/mini-games/memory-game.component';
|
|
347
345
|
export * from './lib/components/organisms/mini-games/mini-game-player-profile.service';
|