Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Commit edb26f7

Browse files
authored
Add property info (#27)
1 parent acfea47 commit edb26f7

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

src/include/BL2SDK/Core/Core_classes.h

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,14 +1008,22 @@ class UFunction : public UStruct
10081008
class UProperty : public UField
10091009
{
10101010
public:
1011-
unsigned char UnknownData00[0x40]; // 0x0040 (0x0040) MISSED OFFSET
1011+
int ArrayDim;
1012+
UProperty* DestructorLinkNext;
1013+
int ElementSize;
1014+
UProperty* NextRef;
1015+
UProperty* PostConstructLinkNext;
1016+
unsigned int PropertyFlags;
1017+
UProperty* PropertyLinkNext;
1018+
unsigned short RepIndex;
1019+
FName RepNotifyFunc;
10121020
};
10131021

10141022
// 0x0004 (0x0084 - 0x0080)
10151023
class UStructProperty : public UProperty
10161024
{
10171025
public:
1018-
unsigned char UnknownData00[0x4]; // 0x0080 (0x0004) MISSED OFFSET
1026+
UScriptStruct* Struct;
10191027
};
10201028

10211029
// 0x0000 (0x0080 - 0x0080)
@@ -1025,7 +1033,7 @@ class UStrProperty : public UProperty {};
10251033
class UObjectProperty : public UProperty
10261034
{
10271035
public:
1028-
unsigned char UnknownData00[0x4]; // 0x0080 (0x0004) MISSED OFFSET
1036+
UObject* Object;
10291037
};
10301038

10311039
// 0x0000 (0x0084 - 0x0084)
@@ -1035,7 +1043,7 @@ class UComponentProperty : public UObjectProperty {};
10351043
class UClassProperty : public UObjectProperty
10361044
{
10371045
public:
1038-
unsigned char UnknownData00[0x4]; // 0x0084 (0x0004) MISSED OFFSET
1046+
UClass* MetaClass;
10391047
};
10401048

10411049
// 0x0000 (0x0080 - 0x0080)

src/pydefs/Core_classes.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -425,25 +425,25 @@ void Export_pystes_Core_classes(py::module &m)
425425
;
426426
py::class_< UStructProperty, UProperty >(m, "UStructProperty")
427427
;
428-
py::class_< UStrProperty >(m, "UStrProperty")
428+
py::class_< UStrProperty, UProperty >(m, "UStrProperty")
429429
;
430430
py::class_< UObjectProperty, UProperty >(m, "UObjectProperty")
431431
;
432-
py::class_< UComponentProperty >(m, "UComponentProperty")
432+
py::class_< UComponentProperty, UProperty >(m, "UComponentProperty")
433433
;
434434
py::class_< UClassProperty, UObjectProperty >(m, "UClassProperty")
435435
;
436-
py::class_< UNameProperty >(m, "UNameProperty")
436+
py::class_< UNameProperty, UProperty >(m, "UNameProperty")
437437
;
438438
py::class_< UMapProperty, UProperty >(m, "UMapProperty")
439439
;
440-
py::class_< UIntProperty >(m, "UIntProperty")
440+
py::class_< UIntProperty, UProperty >(m, "UIntProperty")
441441
;
442442
py::class_< UIntAttributeProperty, UIntProperty >(m, "UIntAttributeProperty")
443443
;
444444
py::class_< UInterfaceProperty, UProperty >(m, "UInterfaceProperty")
445445
;
446-
py::class_< UFloatProperty >(m, "UFloatProperty")
446+
py::class_< UFloatProperty, UProperty >(m, "UFloatProperty")
447447
;
448448
py::class_< UFloatAttributeProperty, UFloatProperty >(m, "UFloatAttributeProperty")
449449
;
@@ -473,7 +473,7 @@ void Export_pystes_Core_classes(py::module &m)
473473
.def_readwrite("AutoPriority", &UFactory::AutoPriority)
474474
.def_readwrite("ValidGameNames", &UFactory::ValidGameNames, py::return_value_policy::reference)
475475
;
476-
py::class_< UTextBufferFactory >(m, "UTextBufferFactory")
476+
py::class_< UTextBufferFactory, UFactory >(m, "UTextBufferFactory")
477477
;
478478
py::class_< UExporter, UObject >(m, "UExporter")
479479
.def_readwrite("FormatExtension", &UExporter::FormatExtension, py::return_value_policy::reference)

0 commit comments

Comments
 (0)