equipment data

This commit is contained in:
tresabhi committed 2026-05-17 12:56:23 -05:00
1 parent f95a6e3495
commit c45af8e156
8 files changed
+70 -34

No files matched your search

@@ -7,6 +7,7 @@ const TARGET = "../../packages/closed/src/unreal/catalogItemAccessor.ts";
const componentPattern = /^export interface (\w+Component) {/gm;
const componentSuffixPattern = /Component$/;
const tsSuffixPattern = /\.ts$/;
const blitzStaticPrefixPattern = /^BlitzStatic/;
let imports = "";
let methods = "";
@@ -23,10 +24,9 @@ for (const file of files) {
for (const match of matches) {
const interfaceName = match[1];
const componentName = interfaceName.split("_").at(-1)!;
if (componentName.startsWith("BlitzStatic")) continue;
const fieldName = lowerFirst(componentName);
const fieldName = lowerFirst(
componentName.replace(blitzStaticPrefixPattern, ""),
);
const methodName = componentName.replace(componentSuffixPattern, "");
const importName = file.replace(tsSuffixPattern, "");