Added more data and options to models
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ export type CalendarEventCategory =
|
||||
| 'mort'
|
||||
| 'catastrophe'
|
||||
| 'législation'
|
||||
| 'catastrophe-naturel'
|
||||
| 'catastrophe-naturelle'
|
||||
| 'inauguration'
|
||||
| 'religion'
|
||||
| 'invention'
|
||||
|
||||
Reference in New Issue
Block a user