mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
equipment data
This commit is contained in:
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, "");
|
||||
|
||||
|
||||
Reference in new issue
Block a user