Added more data and options to models

This commit is contained in:
Alexis
2024-04-14 20:53:21 +02:00
parent 3d252d39c8
commit 37bb063a61
5 changed files with 162 additions and 36 deletions

View File

@@ -7,8 +7,13 @@ export interface Character {
death?: LeimDate
hiddenBirth?: boolean
hiddenDeath?: boolean
category?: CharacterCategory
secondaryCategories?: CharacterCategory[]
wiki?: string
}
export type CharacterCategory = 'joueur' | 'comte' | 'scientifique' | 'mage' | 'professeur'
export function isCharacter(object: any): object is Character {
return 'birth' in object
}