从master分支拉取puerts,并拉取v8制品,修改puerts插件部分UE5_5以下兼容的宏代码。保证puerts编译通过。包括
CSharpParamDefaultValueMetas.cs和ubtplugin.csproj和declarationGenerator.cpp和PropertyTranslator.cpp对UserDefinedStruct.h的引用
This commit is contained in:
@@ -49,6 +49,30 @@
|
||||
} \
|
||||
}
|
||||
|
||||
#define __DefCDataConverter_pesapi_impl(CLS) \
|
||||
namespace PUERTS_NAMESPACE \
|
||||
{ \
|
||||
namespace pesapi_impl \
|
||||
{ \
|
||||
template <> \
|
||||
struct Converter<CLS> \
|
||||
{ \
|
||||
static pesapi_value toScript(pesapi_env env, CLS value) \
|
||||
{ \
|
||||
return pesapi_native_object_to_value(env, DynamicTypeId<CLS>::get(&value), new CLS(value), true); \
|
||||
} \
|
||||
static CLS toCpp(pesapi_env env, pesapi_value value) \
|
||||
{ \
|
||||
return *static_cast<CLS*>(pesapi_get_native_object_ptr(env, value)); \
|
||||
} \
|
||||
static bool accept(pesapi_env env, pesapi_value value) \
|
||||
{ \
|
||||
return pesapi_is_instance_of(env, StaticTypeId<CLS>::get(), value); \
|
||||
} \
|
||||
}; \
|
||||
} \
|
||||
}
|
||||
|
||||
namespace PUERTS_NAMESPACE
|
||||
{
|
||||
namespace pesapi_impl
|
||||
|
||||
Reference in New Issue
Block a user