mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-11 01:54:21 +02:00
45 lines
676 B
TypeScript
45 lines
676 B
TypeScript
export class Game {
|
|
id = 0
|
|
|
|
title = ""
|
|
|
|
author = ""
|
|
|
|
editor = ""
|
|
|
|
playersMin = 0
|
|
|
|
playersMax = 0
|
|
|
|
duration = 0
|
|
|
|
type: "Ambiance" | "Famille" | "Expert" | "" = ""
|
|
|
|
poufpaf = ""
|
|
|
|
bggId = 0
|
|
|
|
ean = ""
|
|
|
|
bggPhoto = ""
|
|
}
|
|
|
|
export const translationGame: { [k in keyof Game]: string } = {
|
|
id: "id",
|
|
title: "titre",
|
|
author: "auteur",
|
|
editor: "editeur",
|
|
playersMin: "minJoueurs",
|
|
playersMax: "maxJoueurs",
|
|
duration: "duree",
|
|
type: "type",
|
|
poufpaf: "poufpaf",
|
|
bggId: "bggId",
|
|
ean: "ean",
|
|
bggPhoto: "bggPhoto",
|
|
}
|
|
|
|
export const elementName = "Game"
|
|
|
|
export type GameWithoutId = Omit<Game, "id">
|