From 80d8574a250e5ccbdaa3038dc9dbd8caed2e1d10 Mon Sep 17 00:00:00 2001 From: Matt-Hurd Date: Tue, 23 Apr 2019 23:47:02 -0500 Subject: [PATCH] Add property info --- src/include/BL2SDK/Core/Core_classes.h | 16 ++++++++++++---- src/pydefs/Core_classes.cpp | 12 ++++++------ 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/include/BL2SDK/Core/Core_classes.h b/src/include/BL2SDK/Core/Core_classes.h index 4f735cbc..5969abce 100644 --- a/src/include/BL2SDK/Core/Core_classes.h +++ b/src/include/BL2SDK/Core/Core_classes.h @@ -1008,14 +1008,22 @@ class UFunction : public UStruct class UProperty : public UField { public: - unsigned char UnknownData00[0x40]; // 0x0040 (0x0040) MISSED OFFSET + int ArrayDim; + UProperty* DestructorLinkNext; + int ElementSize; + UProperty* NextRef; + UProperty* PostConstructLinkNext; + unsigned int PropertyFlags; + UProperty* PropertyLinkNext; + unsigned short RepIndex; + FName RepNotifyFunc; }; // 0x0004 (0x0084 - 0x0080) class UStructProperty : public UProperty { public: - unsigned char UnknownData00[0x4]; // 0x0080 (0x0004) MISSED OFFSET + UScriptStruct* Struct; }; // 0x0000 (0x0080 - 0x0080) @@ -1025,7 +1033,7 @@ class UStrProperty : public UProperty {}; class UObjectProperty : public UProperty { public: - unsigned char UnknownData00[0x4]; // 0x0080 (0x0004) MISSED OFFSET + UObject* Object; }; // 0x0000 (0x0084 - 0x0084) @@ -1035,7 +1043,7 @@ class UComponentProperty : public UObjectProperty {}; class UClassProperty : public UObjectProperty { public: - unsigned char UnknownData00[0x4]; // 0x0084 (0x0004) MISSED OFFSET + UClass* MetaClass; }; // 0x0000 (0x0080 - 0x0080) diff --git a/src/pydefs/Core_classes.cpp b/src/pydefs/Core_classes.cpp index d7b52dad..4491437e 100644 --- a/src/pydefs/Core_classes.cpp +++ b/src/pydefs/Core_classes.cpp @@ -425,25 +425,25 @@ void Export_pystes_Core_classes(py::module &m) ; py::class_< UStructProperty, UProperty >(m, "UStructProperty") ; - py::class_< UStrProperty >(m, "UStrProperty") + py::class_< UStrProperty, UProperty >(m, "UStrProperty") ; py::class_< UObjectProperty, UProperty >(m, "UObjectProperty") ; - py::class_< UComponentProperty >(m, "UComponentProperty") + py::class_< UComponentProperty, UProperty >(m, "UComponentProperty") ; py::class_< UClassProperty, UObjectProperty >(m, "UClassProperty") ; - py::class_< UNameProperty >(m, "UNameProperty") + py::class_< UNameProperty, UProperty >(m, "UNameProperty") ; py::class_< UMapProperty, UProperty >(m, "UMapProperty") ; - py::class_< UIntProperty >(m, "UIntProperty") + py::class_< UIntProperty, UProperty >(m, "UIntProperty") ; py::class_< UIntAttributeProperty, UIntProperty >(m, "UIntAttributeProperty") ; py::class_< UInterfaceProperty, UProperty >(m, "UInterfaceProperty") ; - py::class_< UFloatProperty >(m, "UFloatProperty") + py::class_< UFloatProperty, UProperty >(m, "UFloatProperty") ; py::class_< UFloatAttributeProperty, UFloatProperty >(m, "UFloatAttributeProperty") ; @@ -473,7 +473,7 @@ void Export_pystes_Core_classes(py::module &m) .def_readwrite("AutoPriority", &UFactory::AutoPriority) .def_readwrite("ValidGameNames", &UFactory::ValidGameNames, py::return_value_policy::reference) ; - py::class_< UTextBufferFactory >(m, "UTextBufferFactory") + py::class_< UTextBufferFactory, UFactory >(m, "UTextBufferFactory") ; py::class_< UExporter, UObject >(m, "UExporter") .def_readwrite("FormatExtension", &UExporter::FormatExtension, py::return_value_policy::reference)