This commit is contained in:
2025-03-30 11:33:38 +02:00
parent 681115e291
commit 4009c44841
34 changed files with 726 additions and 146 deletions
+6 -3
View File
@@ -6,8 +6,11 @@ export const lobbyPatchSchema = z.object({
.min(2, {
message: "Name must contain at least 2 characters",
})
.max(255, {
message: "Name can only contain up to 255 characters",
.max(64, {
message: "Name can only contain up to 64 characters",
}),
maxPlayers: z.number().default(0),
maxPlayers: z.number().min(2).max(12).default(2),
});
export const LobbyMemberRoleSchema = z.enum(["admin", "player"]);
export type LobbyMemberRole = z.infer<typeof LobbyMemberRoleSchema>;