forked from Bitcoindefi/OpenAO
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharenas.ts
More file actions
40 lines (36 loc) · 861 Bytes
/
Copy patharenas.ts
File metadata and controls
40 lines (36 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
export type ArenaRoomSummary = {
id: string;
name: string;
isPublic: boolean;
joinToken: string;
mapId: number;
capacity: number;
connectedPlayers: number;
owner: {
_id: string;
name: string;
};
};
export type ArenaRoomDetails = ArenaRoomSummary & {
isOwner: boolean;
member: {
selectedPvpTemplateId: number | null;
connected: boolean;
} | null;
};
export type ArenaRoomsResponse = {
rooms: ArenaRoomSummary[];
};
export type ArenaGameTicketResponse = {
ticket: string;
expiresAt: string;
};
export const PVP_CHARACTER_TEMPLATES = [
{ id: 0, name: "Mago" },
{ id: 1, name: "Clerigo" },
{ id: 2, name: "Guerrero" },
{ id: 3, name: "Asesino" },
{ id: 4, name: "Bardo" },
{ id: 5, name: "Paladin" },
{ id: 6, name: "Cazador" },
] as const;