mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-05 13:28:08 +03:00
15 lines
328 B
TypeScript
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;
|
|
}
|