Skip to content

Commit 8c07aff

Browse files
committed
Added a few more mapping-types.
1 parent 290a227 commit 8c07aff

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

Dumper/Engine/Public/Unreal/Enums.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,16 @@ enum class EMappingsTypeFlags : uint8
351351
SetProperty,
352352
EnumProperty,
353353
FieldPathProperty,
354-
OptionalProperty,
354+
OptionalProperty, // Last property for which support was added
355+
Utf8StrProperty,
356+
AnsiStrProperty,
357+
358+
ClassProperty,
359+
MulticastInlineDelegateProperty,
360+
SoftClassProperty,
361+
VerseStringProperty,
362+
VerseDynamicProperty,
363+
VerseFunctionProperty,
355364

356365
Unknown = 0xFF
357366
};

Dumper/Generator/Private/Generators/MappingGenerator.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,26 @@ EMappingsTypeFlags MappingGenerator::GetMappingType(UEProperty Property)
127127
{
128128
return EMappingsTypeFlags::DelegateProperty;
129129
}
130+
else if (Flags & EClassCastFlags::Utf8StrProperty)
131+
{
132+
return EMappingsTypeFlags::Utf8StrProperty;
133+
}
134+
else if (Flags & EClassCastFlags::AnsiStrProperty)
135+
{
136+
return EMappingsTypeFlags::AnsiStrProperty;
137+
}
138+
else if (Flags & EClassCastFlags::ClassProperty)
139+
{
140+
return EMappingsTypeFlags::ClassProperty;
141+
}
142+
else if (Flags & EClassCastFlags::MulticastInlineDelegateProperty)
143+
{
144+
return EMappingsTypeFlags::MulticastInlineDelegateProperty;
145+
}
146+
else if (Flags & EClassCastFlags::SoftClassProperty)
147+
{
148+
return EMappingsTypeFlags::SoftClassProperty;
149+
}
130150

131151
return EMappingsTypeFlags::Unknown;
132152
}

0 commit comments

Comments
 (0)