Added tag search for events and characters
This commit is contained in:
@@ -11,18 +11,20 @@ export interface Character {
|
||||
secondaryCategories?: CharacterCategory[]
|
||||
wiki?: string
|
||||
}
|
||||
export const characterCategories = [
|
||||
'joueur',
|
||||
'comte',
|
||||
'scientifique',
|
||||
'mage',
|
||||
'professeur',
|
||||
'criminel',
|
||||
'étincelle',
|
||||
'buse blanche',
|
||||
'ecclésiastique',
|
||||
'sentinelle'
|
||||
] as const
|
||||
|
||||
export type CharacterCategory =
|
||||
| 'joueur'
|
||||
| 'comte'
|
||||
| 'scientifique'
|
||||
| 'mage'
|
||||
| 'professeur'
|
||||
| 'criminel'
|
||||
| 'étincelle'
|
||||
| 'buse blanche'
|
||||
| 'ecclésiastique'
|
||||
| 'sentinelle'
|
||||
export type CharacterCategory = (typeof characterCategories)[number]
|
||||
|
||||
export function isCharacter(object: any): object is Character {
|
||||
return 'birth' in object
|
||||
|
||||
@@ -10,18 +10,21 @@ export interface CalendarEvent {
|
||||
wiki?: string
|
||||
}
|
||||
|
||||
export type CalendarEventCategory =
|
||||
| 'naissance'
|
||||
| 'mort'
|
||||
| 'catastrophe'
|
||||
| 'législation'
|
||||
| 'catastrophe-naturelle'
|
||||
| 'inauguration'
|
||||
| 'religion'
|
||||
| 'invention'
|
||||
| 'science'
|
||||
| 'bénédiction' // Great event on a global scale
|
||||
| 'joueurs'
|
||||
export const calendarEventCategories = [
|
||||
'naissance',
|
||||
'mort',
|
||||
'catastrophe',
|
||||
'législation',
|
||||
'catastrophe naturelle',
|
||||
'inauguration',
|
||||
'religion',
|
||||
'invention',
|
||||
'science',
|
||||
'bénédiction',
|
||||
'joueurs'
|
||||
]
|
||||
|
||||
export type CalendarEventCategory = (typeof calendarEventCategories)[number]
|
||||
|
||||
export function isCalendarEvent(object: any): object is CalendarEvent {
|
||||
return 'date' in object
|
||||
|
||||
Reference in New Issue
Block a user