-
Notifications
You must be signed in to change notification settings - Fork 0
/
allGames.ts
50 lines (47 loc) · 1.47 KB
/
allGames.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import Calico from './games/calico/main';
import DorfromantikDuel from './games/dorfromatik-duel/main';
import Everdell from './games/everdell/main';
import Harmonies from './games/harmonies/main';
import LetsGoToJapan from './games/lets-go-to-japan/main';
import Scout from './games/scout/main';
import SevenWondersDuel from './games/seven-wonders-duel/main';
import TerraformingMars from './games/terraforming-mars/main';
import Wizard from './games/wizard/main';
import Wingspan from './games/wingspan/main';
import ForestShuffle from './games/forest-shuffle/main';
import WorldWonders from './games/world-wonders/main';
import SeaSaltPaper from './games/sea-salt-paper/main';
import SpiritsOfTheWild from './games/spirits-of-the-wild/main';
import Faraway from './games/faraway/main';
import SavannahPark from './games/savannah-park/main';
import TheWhiteCastle from './games/the-white-castle/main';
export function getAllGames() {
return [
Everdell,
Calico,
DorfromantikDuel,
Harmonies,
LetsGoToJapan,
Scout,
SevenWondersDuel,
TerraformingMars,
Wizard,
Wingspan,
WorldWonders,
ForestShuffle,
SeaSaltPaper,
SpiritsOfTheWild,
Faraway,
SavannahPark,
TheWhiteCastle,
];
}
export function getSortedGames() {
const games = getAllGames();
games.sort((a, b) => a.definition.title.localeCompare(b.definition.title));
return games;
}
export function getSortedGameNames(): string[] {
const games = getSortedGames();
return games.map((game) => game.definition.title);
}