Skip to content

Commit

Permalink
[unreal]Vector等结构体的声明按普通的模板wrapper处理
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Nov 12, 2024
1 parent 860e619 commit 23dd521
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 840 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,10 @@ void FTypeScriptDeclarationGenerator::GatherExtensions(UStruct* Struct, FStringB
while (PropertyInfo && PropertyInfo->Name && PropertyInfo->Type)
{
if (Struct->FindPropertyByName(UTF8_TO_TCHAR(PropertyInfo->Name)))
{
++PropertyInfo;
continue;
}
Buff << " " << PropertyInfo->Name << ": " << GetNamePrefix(PropertyInfo->Type) << PropertyInfo->Type->Name()
<< ";\n";
++PropertyInfo;
Expand Down Expand Up @@ -1366,7 +1369,6 @@ void FTypeScriptDeclarationGenerator::GenEnum(UEnum* Enum)

void FTypeScriptDeclarationGenerator::GenStruct(UStruct* Struct)
{
#include "ExcludeStructs.h"
FStringBuffer StringBuffer{"", ""};
const FString SafeStructName =
Struct->IsNative() ? SafeName(Struct->GetName()) : PUERTS_NAMESPACE::FilenameToTypeScriptVariableName(Struct->GetName());
Expand Down

This file was deleted.

3 changes: 1 addition & 2 deletions unreal/Puerts/Typing/ue/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference path="puerts.d.ts" />
/// <reference path="ue.d.ts" />
/// <reference path="ue_s.d.ts" />
/// <reference path="ue.d.ts" />
/// <reference path="puerts_decorators.d.ts" />
/// <reference path="ue_bp.d.ts" />
Loading

0 comments on commit 23dd521

Please sign in to comment.