mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-15 16:16:14 +00:00
Codegen integration + string enum serialization support
This commit is contained in:
@@ -68,6 +68,7 @@ LIBS += -L$$EXTERNALS_DIR/glew-2.1.0/lib/Release/x64 -lglew32s \
|
||||
# Include Paths
|
||||
INCLUDEPATH += $$PWE_MAIN_INCLUDE \
|
||||
$$EXTERNALS_DIR/assimp/include \
|
||||
$$EXTERNALS_DIR/CodeGen/include \
|
||||
$$EXTERNALS_DIR/glew-2.1.0/include \
|
||||
$$EXTERNALS_DIR/lzo-2.10/include \
|
||||
$$EXTERNALS_DIR/nod/include \
|
||||
@@ -161,7 +162,6 @@ HEADERS += \
|
||||
OpenGL/CVertexBuffer.h \
|
||||
OpenGL/GLCommon.h \
|
||||
ScriptExtra/CRadiusSphereExtra.h \
|
||||
Resource/EGame.h \
|
||||
Resource/Cooker/CAreaCooker.h \
|
||||
Resource/Script/IPropertyValue.h \
|
||||
Resource/Script/IPropertyTemplate.h \
|
||||
@@ -368,6 +368,11 @@ SOURCES += \
|
||||
Resource/Script/CPropertyNameGenerator.cpp \
|
||||
Resource/Script/IPropertyNew.cpp
|
||||
|
||||
# Codegen
|
||||
CODEGEN_OUT_PATH = $$BUILD_DIR/Core/codegen_build/auto_codegen.cpp
|
||||
CODEGEN_SRC_PATH = $$PWD
|
||||
include($$EXTERNALS_DIR/CodeGen/codegen.pri)
|
||||
|
||||
# Library Sources
|
||||
SOURCES += $$EXTERNALS_DIR/lzo-2.10/src/lzo_init.c \
|
||||
$$EXTERNALS_DIR/lzo-2.10/src/lzo1x_9x.c \
|
||||
|
||||
@@ -63,10 +63,6 @@ enum class EPropertyTypeNew
|
||||
Array = FOURCC('ARRY'),
|
||||
Invalid = FOURCC('INVD')
|
||||
};
|
||||
inline void Serialize(IArchive& rArc, EPropertyTypeNew& rType)
|
||||
{
|
||||
rArc.SerializePrimitive( (CFourCC&) rType );
|
||||
}
|
||||
|
||||
inline const char* PropEnumToHashableTypeName(EPropertyTypeNew Type)
|
||||
{
|
||||
@@ -105,10 +101,6 @@ enum class ECookPreferenceNew
|
||||
Always,
|
||||
Never
|
||||
};
|
||||
inline void Serialize(IArchive& rArc, ECookPreferenceNew& rPref)
|
||||
{
|
||||
rArc.SerializePrimitive( (u32&) rPref );
|
||||
}
|
||||
|
||||
/** New property class */
|
||||
class IPropertyNew
|
||||
|
||||
Reference in New Issue
Block a user