Files
zkldi_Tachi/client/src/util/site.ts
T
2023-01-19 16:39:21 +00:00

15 lines
328 B
TypeScript

import { TachiConfig } from "lib/config";
import { GetGameConfig } from "tachi-common";
export function GetSortedGPTs() {
const arr = [];
for (const game of TachiConfig.games) {
const gameConfig = GetGameConfig(game);
for (const playtype of gameConfig.playtypes) {
arr.push({ game, playtype });
}
}
return arr;
}