Files
MingSimulator/Plugins/Puerts/Source/JsEnv/Private/Gen/FGuid_Wrap.cpp
T
starmen1265 ed21658256 从master分支拉取puerts,并拉取v8制品,修改puerts插件部分UE5_5以下兼容的宏代码。保证puerts编译通过。包括
CSharpParamDefaultValueMetas.cs和ubtplugin.csproj和declarationGenerator.cpp和PropertyTranslator.cpp对UserDefinedStruct.h的引用
2024-12-02 01:03:52 +08:00

41 lines
1.9 KiB
C++

/*
* Tencent is pleased to support the open source community by making Puerts available.
* Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
* Puerts is licensed under the BSD 3-Clause License, except for the third-party components listed in the file 'LICENSE' which may
* be subject to their corresponding license terms. This file is subject to the terms and conditions defined in file 'LICENSE',
* which is part of this source code package.
*/
// gen by puerts gen tools
#include "CoreMinimal.h"
#include "UsingTypeDecl.hpp"
struct AutoRegisterForFGuid
{
AutoRegisterForFGuid()
{
puerts::DefineClass<FGuid>()
.Constructor(CombineConstructors(MakeConstructor(FGuid), MakeConstructor(FGuid, uint32, uint32, uint32, uint32)))
.Property("A", MakeProperty(&FGuid::A))
.Property("B", MakeProperty(&FGuid::B))
.Property("C", MakeProperty(&FGuid::C))
.Property("D", MakeProperty(&FGuid::D))
.Method("set_Item", SelectFunction(uint32 & (FGuid::*) (int32), &FGuid::operator[]))
.Method("get_Item", SelectFunction(const uint32& (FGuid::*) (int32) const, &FGuid::operator[]))
.Method("Invalidate", MakeFunction(&FGuid::Invalidate))
.Method("IsValid", MakeFunction(&FGuid::IsValid))
#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION > 2
.Method("ToString", MakeFunction(&FGuid::ToString, EGuidFormats::Digits))
#else
.Method("ToString", CombineOverloads(MakeOverload(FString(FGuid::*)() const, &FGuid::ToString),
MakeOverload(FString(FGuid::*)(EGuidFormats Format) const, &FGuid::ToString)))
#endif
.Function("NewGuid", MakeFunction(&FGuid::NewGuid))
.Function("Parse", MakeFunction(&FGuid::Parse))
.Function("ParseExact", MakeFunction(&FGuid::ParseExact))
.Register();
}
};
AutoRegisterForFGuid _AutoRegisterForFGuid_;