feat: start of game mode icons

This commit is contained in:
TrèsAbhi committed 2024-08-15 13:35:09 -05:00
1 parent 6ada813dd5
commit 3e00860f7f
4 files changed
+43 -24

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
import { readYAMLDVPL } from '../../src/core/blitz/readYAMLDVPL';
import { DATA } from './constants';
import { SquadBattleTypeUI } from './definitions';
// enum EGameMode {
// Rating = 7,
// Scuffle = 22,
// }
export async function gameModeIcons(production: boolean) {
const squadBattleTypeUI = await readYAMLDVPL<SquadBattleTypeUI>(
`${DATA}/UI/Screens3/Lobby/Hangar/Squad/SquadBattleType.yaml.dvpl`,
);
for (const match of squadBattleTypeUI.Prototypes[0].components.UIDataLocalBindingsComponent.data[0][2].matchAll(
/"(\d+)" -> "(battleType\/[a-zA-Z]+)"/g,
)) {
const id = Number(match[1]);
// gameDefinitions.gameModes[id] = {
// name,
// };
}
}