Add CharacterBuilder class to unify and compile the features

This commit is contained in:
Clément Pons
2025-07-21 12:01:52 +02:00
parent 996b9711e4
commit a8dcc47a1b
15 changed files with 491 additions and 436 deletions

View File

@@ -1,7 +1,8 @@
import { z } from 'zod';
import useDatabase from '~/composables/useDatabase';
import { characterAbilitiesTable, characterLevelingTable, characterModifiersTable, characterSpellsTable, characterTable, characterTrainingTable } from '~/db/schema';
import { CharacterValidation, type Ability, type DoubleIndex, type MainStat, type TrainingLevel } from '~/types/character';
import { CharacterValidation } from '~/shared/character';
import { type Ability, type MainStat } from '~/types/character';
export default defineEventHandler(async (e) => {