omniarena-nurvus-shared 0.46.0 → 0.48.0
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/dist/custom-characters.d.ts +36 -0
- package/dist/index.d.ts +1 -0
- package/dist/socket.d.ts +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Resource } from './engine.js';
|
|
2
|
+
export type CustomCharacterSkillData = {
|
|
3
|
+
name: string;
|
|
4
|
+
imageUrl: string;
|
|
5
|
+
description: string;
|
|
6
|
+
cooldown: number;
|
|
7
|
+
cost: Resource[];
|
|
8
|
+
classes: string;
|
|
9
|
+
};
|
|
10
|
+
export type CustomCharacterData = {
|
|
11
|
+
name: string;
|
|
12
|
+
bio: string;
|
|
13
|
+
avatarUrl: string;
|
|
14
|
+
skills: CustomCharacterSkillData[];
|
|
15
|
+
};
|
|
16
|
+
export type UpdateCustomCharacterData = CustomCharacterData & {
|
|
17
|
+
version: number;
|
|
18
|
+
};
|
|
19
|
+
export type CustomCharacterDto = CustomCharacterData & {
|
|
20
|
+
id: string;
|
|
21
|
+
creatorId: string;
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
updatedAt: Date;
|
|
24
|
+
version: number;
|
|
25
|
+
};
|
|
26
|
+
export type CustomCharacterSummaryDto = {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
avatarUrl: string;
|
|
30
|
+
skillCount: number;
|
|
31
|
+
updatedAt: Date;
|
|
32
|
+
};
|
|
33
|
+
export type CustomCharacterListDto = {
|
|
34
|
+
characters: CustomCharacterSummaryDto[];
|
|
35
|
+
nextCursor: string | null;
|
|
36
|
+
};
|
package/dist/index.d.ts
CHANGED
package/dist/socket.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BattleEndReason, BattleMode } from './common.js';
|
|
2
2
|
import type { UserHeaderDto } from './common.js';
|
|
3
3
|
import type { ActionData } from './engine.js';
|
|
4
|
+
import type { LobbyMessageDto } from './lobby.js';
|
|
4
5
|
export type ChallengeDenyReason = 'declined' | 'busy' | 'offline' | 'expired' | 'withdrawn';
|
|
5
6
|
export type BotDifficulty = 'easiest' | 'easy' | 'medium' | 'hard' | 'hardest';
|
|
6
7
|
export type BattleOutcome = {
|
|
@@ -24,8 +25,10 @@ export type ClientToServerEvents = {
|
|
|
24
25
|
deny_challenge: (challengerId: string) => void;
|
|
25
26
|
};
|
|
26
27
|
export type ServerToClientEvents = {
|
|
27
|
-
/** Lobby namespace only:
|
|
28
|
+
/** Lobby namespace only: reaction/retention changes require a viewer-specific refresh. */
|
|
28
29
|
lobby_changed: () => void;
|
|
30
|
+
/** Lobby namespace only: a newly committed message, with initially empty reactions. */
|
|
31
|
+
lobby_message: (message: LobbyMessageDto) => void;
|
|
29
32
|
connexion_established: (inBattle: boolean, outcome?: BattleOutcome) => void;
|
|
30
33
|
connection_refused: (reason: 'practice_account_busy') => void;
|
|
31
34
|
timer_started: () => void;
|