41 lines
822 B
TypeScript
41 lines
822 B
TypeScript
import type { IMinigame } from "..";
|
|
|
|
export const getGame = (id: string) => {
|
|
return gameLibary.find((g) => g.id === id);
|
|
};
|
|
|
|
export const gameLibary: Array<IMinigame> = [
|
|
{
|
|
id: "quiz",
|
|
name: "Quiz",
|
|
description: "Quiz minigame",
|
|
thumbnail: "/games/quiz.jpg",
|
|
minPlayers: 1,
|
|
maxPlayers: 12,
|
|
},
|
|
{
|
|
id: "reaction",
|
|
name: "Reaction",
|
|
description: "Reaction minigame",
|
|
thumbnail: "/games/reaction.jpg",
|
|
minPlayers: 1,
|
|
maxPlayers: 12,
|
|
},
|
|
{
|
|
id: "trivia",
|
|
name: "Trivia",
|
|
description: "Trivia minigame",
|
|
thumbnail: "/games/trivia.jpg",
|
|
minPlayers: 1,
|
|
maxPlayers: 12,
|
|
},
|
|
{
|
|
id: "place",
|
|
name: "Placeholder",
|
|
description: "Placeholder Lorem Ipsum",
|
|
thumbnail: "/games/trivia.jpg",
|
|
minPlayers: 1,
|
|
maxPlayers: 12,
|
|
},
|
|
];
|