add AutoFocusGameWindow

This commit is contained in:
Jian Zhang 2025-10-30 12:49:14 +08:00
parent 660736cd07
commit a67281d9de
24 changed files with 781 additions and 27 deletions

View File

@ -0,0 +1,150 @@
// Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
===========================================================================*/
#include "UObject/GeneratedCppIncludes.h"
#include "NewCAVESystemCpp/Public/AutoFocusFuncLib.h"
PRAGMA_DISABLE_DEPRECATION_WARNINGS
void EmptyLinkFunctionForGeneratedCodeAutoFocusFuncLib() {}
// Begin Cross Module References
ENGINE_API UClass* Z_Construct_UClass_UBlueprintFunctionLibrary();
NEWCAVESYSTEMCPP_API UClass* Z_Construct_UClass_UAutoFocusFuncLib();
NEWCAVESYSTEMCPP_API UClass* Z_Construct_UClass_UAutoFocusFuncLib_NoRegister();
UPackage* Z_Construct_UPackage__Script_NewCAVESystemCpp();
// End Cross Module References
// Begin Class UAutoFocusFuncLib Function FocusGameWindow
struct Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics
{
struct AutoFocusFuncLib_eventFocusGameWindow_Parms
{
bool ReturnValue;
};
#if WITH_METADATA
static constexpr UECodeGen_Private::FMetaDataPairParam Function_MetaDataParams[] = {
{ "Category", "Window Utils" },
{ "Comment", "//module require ApplicationCore SlateCore\n" },
{ "ModuleRelativePath", "Public/AutoFocusFuncLib.h" },
{ "ToolTip", "module require ApplicationCore SlateCore" },
};
#endif // WITH_METADATA
static void NewProp_ReturnValue_SetBit(void* Obj);
static const UECodeGen_Private::FBoolPropertyParams NewProp_ReturnValue;
static const UECodeGen_Private::FPropertyParamsBase* const PropPointers[];
static const UECodeGen_Private::FFunctionParams FuncParams;
};
void Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::NewProp_ReturnValue_SetBit(void* Obj)
{
((AutoFocusFuncLib_eventFocusGameWindow_Parms*)Obj)->ReturnValue = 1;
}
const UECodeGen_Private::FBoolPropertyParams Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::NewProp_ReturnValue = { "ReturnValue", nullptr, (EPropertyFlags)0x0010000000000580, UECodeGen_Private::EPropertyGenFlags::Bool | UECodeGen_Private::EPropertyGenFlags::NativeBool, RF_Public|RF_Transient|RF_MarkAsNative, nullptr, nullptr, 1, sizeof(bool), sizeof(AutoFocusFuncLib_eventFocusGameWindow_Parms), &Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::NewProp_ReturnValue_SetBit, METADATA_PARAMS(0, nullptr) };
const UECodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::PropPointers[] = {
(const UECodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::NewProp_ReturnValue,
};
static_assert(UE_ARRAY_COUNT(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::PropPointers) < 2048);
const UECodeGen_Private::FFunctionParams Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAutoFocusFuncLib, nullptr, "FocusGameWindow", nullptr, nullptr, Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::PropPointers, UE_ARRAY_COUNT(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::PropPointers), sizeof(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::AutoFocusFuncLib_eventFocusGameWindow_Parms), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04022401, 0, 0, METADATA_PARAMS(UE_ARRAY_COUNT(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::Function_MetaDataParams), Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::Function_MetaDataParams) };
static_assert(sizeof(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::AutoFocusFuncLib_eventFocusGameWindow_Parms) < MAX_uint16);
UFunction* Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UECodeGen_Private::ConstructUFunction(&ReturnFunction, Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::FuncParams);
}
return ReturnFunction;
}
DEFINE_FUNCTION(UAutoFocusFuncLib::execFocusGameWindow)
{
P_FINISH;
P_NATIVE_BEGIN;
*(bool*)Z_Param__Result=UAutoFocusFuncLib::FocusGameWindow();
P_NATIVE_END;
}
// End Class UAutoFocusFuncLib Function FocusGameWindow
// Begin Class UAutoFocusFuncLib
void UAutoFocusFuncLib::StaticRegisterNativesUAutoFocusFuncLib()
{
UClass* Class = UAutoFocusFuncLib::StaticClass();
static const FNameNativePtrPair Funcs[] = {
{ "FocusGameWindow", &UAutoFocusFuncLib::execFocusGameWindow },
};
FNativeFunctionRegistrar::RegisterFunctions(Class, Funcs, UE_ARRAY_COUNT(Funcs));
}
IMPLEMENT_CLASS_NO_AUTO_REGISTRATION(UAutoFocusFuncLib);
UClass* Z_Construct_UClass_UAutoFocusFuncLib_NoRegister()
{
return UAutoFocusFuncLib::StaticClass();
}
struct Z_Construct_UClass_UAutoFocusFuncLib_Statics
{
#if WITH_METADATA
static constexpr UECodeGen_Private::FMetaDataPairParam Class_MetaDataParams[] = {
{ "Comment", "/**\n * \n */" },
{ "IncludePath", "AutoFocusFuncLib.h" },
{ "ModuleRelativePath", "Public/AutoFocusFuncLib.h" },
};
#endif // WITH_METADATA
static UObject* (*const DependentSingletons[])();
static constexpr FClassFunctionLinkInfo FuncInfo[] = {
{ &Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow, "FocusGameWindow" }, // 3047381597
};
static_assert(UE_ARRAY_COUNT(FuncInfo) < 2048);
static constexpr FCppClassTypeInfoStatic StaticCppClassTypeInfo = {
TCppClassTypeTraits<UAutoFocusFuncLib>::IsAbstract,
};
static const UECodeGen_Private::FClassParams ClassParams;
};
UObject* (*const Z_Construct_UClass_UAutoFocusFuncLib_Statics::DependentSingletons[])() = {
(UObject* (*)())Z_Construct_UClass_UBlueprintFunctionLibrary,
(UObject* (*)())Z_Construct_UPackage__Script_NewCAVESystemCpp,
};
static_assert(UE_ARRAY_COUNT(Z_Construct_UClass_UAutoFocusFuncLib_Statics::DependentSingletons) < 16);
const UECodeGen_Private::FClassParams Z_Construct_UClass_UAutoFocusFuncLib_Statics::ClassParams = {
&UAutoFocusFuncLib::StaticClass,
nullptr,
&StaticCppClassTypeInfo,
DependentSingletons,
FuncInfo,
nullptr,
nullptr,
UE_ARRAY_COUNT(DependentSingletons),
UE_ARRAY_COUNT(FuncInfo),
0,
0,
0x001000A0u,
METADATA_PARAMS(UE_ARRAY_COUNT(Z_Construct_UClass_UAutoFocusFuncLib_Statics::Class_MetaDataParams), Z_Construct_UClass_UAutoFocusFuncLib_Statics::Class_MetaDataParams)
};
UClass* Z_Construct_UClass_UAutoFocusFuncLib()
{
if (!Z_Registration_Info_UClass_UAutoFocusFuncLib.OuterSingleton)
{
UECodeGen_Private::ConstructUClass(Z_Registration_Info_UClass_UAutoFocusFuncLib.OuterSingleton, Z_Construct_UClass_UAutoFocusFuncLib_Statics::ClassParams);
}
return Z_Registration_Info_UClass_UAutoFocusFuncLib.OuterSingleton;
}
template<> NEWCAVESYSTEMCPP_API UClass* StaticClass<UAutoFocusFuncLib>()
{
return UAutoFocusFuncLib::StaticClass();
}
UAutoFocusFuncLib::UAutoFocusFuncLib(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) {}
DEFINE_VTABLE_PTR_HELPER_CTOR(UAutoFocusFuncLib);
UAutoFocusFuncLib::~UAutoFocusFuncLib() {}
// End Class UAutoFocusFuncLib
// Begin Registration
struct Z_CompiledInDeferFile_FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_Statics
{
static constexpr FClassRegisterCompiledInInfo ClassInfo[] = {
{ Z_Construct_UClass_UAutoFocusFuncLib, UAutoFocusFuncLib::StaticClass, TEXT("UAutoFocusFuncLib"), &Z_Registration_Info_UClass_UAutoFocusFuncLib, CONSTRUCT_RELOAD_VERSION_INFO(FClassReloadVersionInfo, sizeof(UAutoFocusFuncLib), 3271052711U) },
};
};
static FRegisterCompiledInInfo Z_CompiledInDeferFile_FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_2353918424(TEXT("/Script/NewCAVESystemCpp"),
Z_CompiledInDeferFile_FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_Statics::ClassInfo, UE_ARRAY_COUNT(Z_CompiledInDeferFile_FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_Statics::ClassInfo),
nullptr, 0,
nullptr, 0);
// End Registration
PRAGMA_ENABLE_DEPRECATION_WARNINGS

View File

@ -0,0 +1,61 @@
// Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
===========================================================================*/
// IWYU pragma: private, include "AutoFocusFuncLib.h"
#include "UObject/ObjectMacros.h"
#include "UObject/ScriptMacros.h"
PRAGMA_DISABLE_DEPRECATION_WARNINGS
#ifdef NEWCAVESYSTEMCPP_AutoFocusFuncLib_generated_h
#error "AutoFocusFuncLib.generated.h already included, missing '#pragma once' in AutoFocusFuncLib.h"
#endif
#define NEWCAVESYSTEMCPP_AutoFocusFuncLib_generated_h
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_RPC_WRAPPERS_NO_PURE_DECLS \
DECLARE_FUNCTION(execFocusGameWindow);
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_INCLASS_NO_PURE_DECLS \
private: \
static void StaticRegisterNativesUAutoFocusFuncLib(); \
friend struct Z_Construct_UClass_UAutoFocusFuncLib_Statics; \
public: \
DECLARE_CLASS(UAutoFocusFuncLib, UBlueprintFunctionLibrary, COMPILED_IN_FLAGS(0), CASTCLASS_None, TEXT("/Script/NewCAVESystemCpp"), NO_API) \
DECLARE_SERIALIZER(UAutoFocusFuncLib)
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_ENHANCED_CONSTRUCTORS \
/** Standard constructor, called after all reflected properties have been initialized */ \
NO_API UAutoFocusFuncLib(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()); \
private: \
/** Private move- and copy-constructors, should never be used */ \
UAutoFocusFuncLib(UAutoFocusFuncLib&&); \
UAutoFocusFuncLib(const UAutoFocusFuncLib&); \
public: \
DECLARE_VTABLE_PTR_HELPER_CTOR(NO_API, UAutoFocusFuncLib); \
DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(UAutoFocusFuncLib); \
DEFINE_DEFAULT_OBJECT_INITIALIZER_CONSTRUCTOR_CALL(UAutoFocusFuncLib) \
NO_API virtual ~UAutoFocusFuncLib();
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_18_PROLOG
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_GENERATED_BODY \
PRAGMA_DISABLE_DEPRECATION_WARNINGS \
public: \
FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_RPC_WRAPPERS_NO_PURE_DECLS \
FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_INCLASS_NO_PURE_DECLS \
FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_ENHANCED_CONSTRUCTORS \
private: \
PRAGMA_ENABLE_DEPRECATION_WARNINGS
template<> NEWCAVESYSTEMCPP_API UClass* StaticClass<class UAutoFocusFuncLib>();
#undef CURRENT_FILE_ID
#define CURRENT_FILE_ID FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h
PRAGMA_ENABLE_DEPRECATION_WARNINGS

View File

@ -17,13 +17,13 @@ void EmptyLinkFunctionForGeneratedCodeNewCAVESystemCpp_init() {}
nullptr,
0,
PKG_CompiledIn | 0x00000000,
0xE0FB5AB6,
0xB5BF78B4,
0xD6E07E6A,
0x045301CD,
METADATA_PARAMS(0, nullptr)
};
UECodeGen_Private::ConstructUPackage(Z_Registration_Info_UPackage__Script_NewCAVESystemCpp.OuterSingleton, PackageParams);
}
return Z_Registration_Info_UPackage__Script_NewCAVESystemCpp.OuterSingleton;
}
static FRegisterCompiledInInfo Z_CompiledInDeferPackage_UPackage__Script_NewCAVESystemCpp(Z_Construct_UPackage__Script_NewCAVESystemCpp, TEXT("/Script/NewCAVESystemCpp"), Z_Registration_Info_UPackage__Script_NewCAVESystemCpp, CONSTRUCT_RELOAD_VERSION_INFO(FPackageReloadVersionInfo, 0xE0FB5AB6, 0xB5BF78B4));
static FRegisterCompiledInInfo Z_CompiledInDeferPackage_UPackage__Script_NewCAVESystemCpp(Z_Construct_UPackage__Script_NewCAVESystemCpp, TEXT("/Script/NewCAVESystemCpp"), Z_Registration_Info_UPackage__Script_NewCAVESystemCpp, CONSTRUCT_RELOAD_VERSION_INFO(FPackageReloadVersionInfo, 0xD6E07E6A, 0x045301CD));
PRAGMA_ENABLE_DEPRECATION_WARNINGS

View File

@ -1,6 +1,7 @@
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_GameSession.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_PawnBase.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_PlayerControllerBase.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\ControllerActorTypes.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\EdnParser.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\NewCAVESystemCppBPLibrary.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\AutoFocusFuncLib.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\ControllerActorTypes.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_GameSession.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\NewCAVESystemCppBPLibrary.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_PlayerControllerBase.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\EdnParser.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_PawnBase.h

View File

@ -0,0 +1,150 @@
// Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
===========================================================================*/
#include "UObject/GeneratedCppIncludes.h"
#include "NewCAVESystemCpp/Public/AutoFocusFuncLib.h"
PRAGMA_DISABLE_DEPRECATION_WARNINGS
void EmptyLinkFunctionForGeneratedCodeAutoFocusFuncLib() {}
// Begin Cross Module References
ENGINE_API UClass* Z_Construct_UClass_UBlueprintFunctionLibrary();
NEWCAVESYSTEMCPP_API UClass* Z_Construct_UClass_UAutoFocusFuncLib();
NEWCAVESYSTEMCPP_API UClass* Z_Construct_UClass_UAutoFocusFuncLib_NoRegister();
UPackage* Z_Construct_UPackage__Script_NewCAVESystemCpp();
// End Cross Module References
// Begin Class UAutoFocusFuncLib Function FocusGameWindow
struct Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics
{
struct AutoFocusFuncLib_eventFocusGameWindow_Parms
{
bool ReturnValue;
};
#if WITH_METADATA
static constexpr UECodeGen_Private::FMetaDataPairParam Function_MetaDataParams[] = {
{ "Category", "Window Utils" },
{ "Comment", "//module require ApplicationCore SlateCore\n" },
{ "ModuleRelativePath", "Public/AutoFocusFuncLib.h" },
{ "ToolTip", "module require ApplicationCore SlateCore" },
};
#endif // WITH_METADATA
static void NewProp_ReturnValue_SetBit(void* Obj);
static const UECodeGen_Private::FBoolPropertyParams NewProp_ReturnValue;
static const UECodeGen_Private::FPropertyParamsBase* const PropPointers[];
static const UECodeGen_Private::FFunctionParams FuncParams;
};
void Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::NewProp_ReturnValue_SetBit(void* Obj)
{
((AutoFocusFuncLib_eventFocusGameWindow_Parms*)Obj)->ReturnValue = 1;
}
const UECodeGen_Private::FBoolPropertyParams Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::NewProp_ReturnValue = { "ReturnValue", nullptr, (EPropertyFlags)0x0010000000000580, UECodeGen_Private::EPropertyGenFlags::Bool | UECodeGen_Private::EPropertyGenFlags::NativeBool, RF_Public|RF_Transient|RF_MarkAsNative, nullptr, nullptr, 1, sizeof(bool), sizeof(AutoFocusFuncLib_eventFocusGameWindow_Parms), &Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::NewProp_ReturnValue_SetBit, METADATA_PARAMS(0, nullptr) };
const UECodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::PropPointers[] = {
(const UECodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::NewProp_ReturnValue,
};
static_assert(UE_ARRAY_COUNT(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::PropPointers) < 2048);
const UECodeGen_Private::FFunctionParams Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAutoFocusFuncLib, nullptr, "FocusGameWindow", nullptr, nullptr, Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::PropPointers, UE_ARRAY_COUNT(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::PropPointers), sizeof(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::AutoFocusFuncLib_eventFocusGameWindow_Parms), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04022401, 0, 0, METADATA_PARAMS(UE_ARRAY_COUNT(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::Function_MetaDataParams), Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::Function_MetaDataParams) };
static_assert(sizeof(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::AutoFocusFuncLib_eventFocusGameWindow_Parms) < MAX_uint16);
UFunction* Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UECodeGen_Private::ConstructUFunction(&ReturnFunction, Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::FuncParams);
}
return ReturnFunction;
}
DEFINE_FUNCTION(UAutoFocusFuncLib::execFocusGameWindow)
{
P_FINISH;
P_NATIVE_BEGIN;
*(bool*)Z_Param__Result=UAutoFocusFuncLib::FocusGameWindow();
P_NATIVE_END;
}
// End Class UAutoFocusFuncLib Function FocusGameWindow
// Begin Class UAutoFocusFuncLib
void UAutoFocusFuncLib::StaticRegisterNativesUAutoFocusFuncLib()
{
UClass* Class = UAutoFocusFuncLib::StaticClass();
static const FNameNativePtrPair Funcs[] = {
{ "FocusGameWindow", &UAutoFocusFuncLib::execFocusGameWindow },
};
FNativeFunctionRegistrar::RegisterFunctions(Class, Funcs, UE_ARRAY_COUNT(Funcs));
}
IMPLEMENT_CLASS_NO_AUTO_REGISTRATION(UAutoFocusFuncLib);
UClass* Z_Construct_UClass_UAutoFocusFuncLib_NoRegister()
{
return UAutoFocusFuncLib::StaticClass();
}
struct Z_Construct_UClass_UAutoFocusFuncLib_Statics
{
#if WITH_METADATA
static constexpr UECodeGen_Private::FMetaDataPairParam Class_MetaDataParams[] = {
{ "Comment", "/**\n * \n */" },
{ "IncludePath", "AutoFocusFuncLib.h" },
{ "ModuleRelativePath", "Public/AutoFocusFuncLib.h" },
};
#endif // WITH_METADATA
static UObject* (*const DependentSingletons[])();
static constexpr FClassFunctionLinkInfo FuncInfo[] = {
{ &Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow, "FocusGameWindow" }, // 3047381597
};
static_assert(UE_ARRAY_COUNT(FuncInfo) < 2048);
static constexpr FCppClassTypeInfoStatic StaticCppClassTypeInfo = {
TCppClassTypeTraits<UAutoFocusFuncLib>::IsAbstract,
};
static const UECodeGen_Private::FClassParams ClassParams;
};
UObject* (*const Z_Construct_UClass_UAutoFocusFuncLib_Statics::DependentSingletons[])() = {
(UObject* (*)())Z_Construct_UClass_UBlueprintFunctionLibrary,
(UObject* (*)())Z_Construct_UPackage__Script_NewCAVESystemCpp,
};
static_assert(UE_ARRAY_COUNT(Z_Construct_UClass_UAutoFocusFuncLib_Statics::DependentSingletons) < 16);
const UECodeGen_Private::FClassParams Z_Construct_UClass_UAutoFocusFuncLib_Statics::ClassParams = {
&UAutoFocusFuncLib::StaticClass,
nullptr,
&StaticCppClassTypeInfo,
DependentSingletons,
FuncInfo,
nullptr,
nullptr,
UE_ARRAY_COUNT(DependentSingletons),
UE_ARRAY_COUNT(FuncInfo),
0,
0,
0x001000A0u,
METADATA_PARAMS(UE_ARRAY_COUNT(Z_Construct_UClass_UAutoFocusFuncLib_Statics::Class_MetaDataParams), Z_Construct_UClass_UAutoFocusFuncLib_Statics::Class_MetaDataParams)
};
UClass* Z_Construct_UClass_UAutoFocusFuncLib()
{
if (!Z_Registration_Info_UClass_UAutoFocusFuncLib.OuterSingleton)
{
UECodeGen_Private::ConstructUClass(Z_Registration_Info_UClass_UAutoFocusFuncLib.OuterSingleton, Z_Construct_UClass_UAutoFocusFuncLib_Statics::ClassParams);
}
return Z_Registration_Info_UClass_UAutoFocusFuncLib.OuterSingleton;
}
template<> NEWCAVESYSTEMCPP_API UClass* StaticClass<UAutoFocusFuncLib>()
{
return UAutoFocusFuncLib::StaticClass();
}
UAutoFocusFuncLib::UAutoFocusFuncLib(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) {}
DEFINE_VTABLE_PTR_HELPER_CTOR(UAutoFocusFuncLib);
UAutoFocusFuncLib::~UAutoFocusFuncLib() {}
// End Class UAutoFocusFuncLib
// Begin Registration
struct Z_CompiledInDeferFile_FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_Statics
{
static constexpr FClassRegisterCompiledInInfo ClassInfo[] = {
{ Z_Construct_UClass_UAutoFocusFuncLib, UAutoFocusFuncLib::StaticClass, TEXT("UAutoFocusFuncLib"), &Z_Registration_Info_UClass_UAutoFocusFuncLib, CONSTRUCT_RELOAD_VERSION_INFO(FClassReloadVersionInfo, sizeof(UAutoFocusFuncLib), 3271052711U) },
};
};
static FRegisterCompiledInInfo Z_CompiledInDeferFile_FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_2353918424(TEXT("/Script/NewCAVESystemCpp"),
Z_CompiledInDeferFile_FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_Statics::ClassInfo, UE_ARRAY_COUNT(Z_CompiledInDeferFile_FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_Statics::ClassInfo),
nullptr, 0,
nullptr, 0);
// End Registration
PRAGMA_ENABLE_DEPRECATION_WARNINGS

View File

@ -0,0 +1,61 @@
// Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
===========================================================================*/
// IWYU pragma: private, include "AutoFocusFuncLib.h"
#include "UObject/ObjectMacros.h"
#include "UObject/ScriptMacros.h"
PRAGMA_DISABLE_DEPRECATION_WARNINGS
#ifdef NEWCAVESYSTEMCPP_AutoFocusFuncLib_generated_h
#error "AutoFocusFuncLib.generated.h already included, missing '#pragma once' in AutoFocusFuncLib.h"
#endif
#define NEWCAVESYSTEMCPP_AutoFocusFuncLib_generated_h
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_RPC_WRAPPERS_NO_PURE_DECLS \
DECLARE_FUNCTION(execFocusGameWindow);
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_INCLASS_NO_PURE_DECLS \
private: \
static void StaticRegisterNativesUAutoFocusFuncLib(); \
friend struct Z_Construct_UClass_UAutoFocusFuncLib_Statics; \
public: \
DECLARE_CLASS(UAutoFocusFuncLib, UBlueprintFunctionLibrary, COMPILED_IN_FLAGS(0), CASTCLASS_None, TEXT("/Script/NewCAVESystemCpp"), NO_API) \
DECLARE_SERIALIZER(UAutoFocusFuncLib)
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_ENHANCED_CONSTRUCTORS \
/** Standard constructor, called after all reflected properties have been initialized */ \
NO_API UAutoFocusFuncLib(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()); \
private: \
/** Private move- and copy-constructors, should never be used */ \
UAutoFocusFuncLib(UAutoFocusFuncLib&&); \
UAutoFocusFuncLib(const UAutoFocusFuncLib&); \
public: \
DECLARE_VTABLE_PTR_HELPER_CTOR(NO_API, UAutoFocusFuncLib); \
DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(UAutoFocusFuncLib); \
DEFINE_DEFAULT_OBJECT_INITIALIZER_CONSTRUCTOR_CALL(UAutoFocusFuncLib) \
NO_API virtual ~UAutoFocusFuncLib();
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_18_PROLOG
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_GENERATED_BODY \
PRAGMA_DISABLE_DEPRECATION_WARNINGS \
public: \
FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_RPC_WRAPPERS_NO_PURE_DECLS \
FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_INCLASS_NO_PURE_DECLS \
FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_ENHANCED_CONSTRUCTORS \
private: \
PRAGMA_ENABLE_DEPRECATION_WARNINGS
template<> NEWCAVESYSTEMCPP_API UClass* StaticClass<class UAutoFocusFuncLib>();
#undef CURRENT_FILE_ID
#define CURRENT_FILE_ID FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h
PRAGMA_ENABLE_DEPRECATION_WARNINGS

View File

@ -17,13 +17,13 @@ void EmptyLinkFunctionForGeneratedCodeNewCAVESystemCpp_init() {}
nullptr,
0,
PKG_CompiledIn | 0x00000000,
0xE0FB5AB6,
0xB5BF78B4,
0xD6E07E6A,
0x045301CD,
METADATA_PARAMS(0, nullptr)
};
UECodeGen_Private::ConstructUPackage(Z_Registration_Info_UPackage__Script_NewCAVESystemCpp.OuterSingleton, PackageParams);
}
return Z_Registration_Info_UPackage__Script_NewCAVESystemCpp.OuterSingleton;
}
static FRegisterCompiledInInfo Z_CompiledInDeferPackage_UPackage__Script_NewCAVESystemCpp(Z_Construct_UPackage__Script_NewCAVESystemCpp, TEXT("/Script/NewCAVESystemCpp"), Z_Registration_Info_UPackage__Script_NewCAVESystemCpp, CONSTRUCT_RELOAD_VERSION_INFO(FPackageReloadVersionInfo, 0xE0FB5AB6, 0xB5BF78B4));
static FRegisterCompiledInInfo Z_CompiledInDeferPackage_UPackage__Script_NewCAVESystemCpp(Z_Construct_UPackage__Script_NewCAVESystemCpp, TEXT("/Script/NewCAVESystemCpp"), Z_Registration_Info_UPackage__Script_NewCAVESystemCpp, CONSTRUCT_RELOAD_VERSION_INFO(FPackageReloadVersionInfo, 0xD6E07E6A, 0x045301CD));
PRAGMA_ENABLE_DEPRECATION_WARNINGS

View File

@ -1,6 +1,7 @@
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_PawnBase.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_GameSession.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\ControllerActorTypes.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_PlayerControllerBase.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\EdnParser.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\NewCAVESystemCppBPLibrary.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\AutoFocusFuncLib.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_GameSession.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_PawnBase.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_PlayerControllerBase.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\ControllerActorTypes.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\EdnParser.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\NewCAVESystemCppBPLibrary.h

View File

@ -0,0 +1,150 @@
// Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
===========================================================================*/
#include "UObject/GeneratedCppIncludes.h"
#include "NewCAVESystemCpp/Public/AutoFocusFuncLib.h"
PRAGMA_DISABLE_DEPRECATION_WARNINGS
void EmptyLinkFunctionForGeneratedCodeAutoFocusFuncLib() {}
// Begin Cross Module References
ENGINE_API UClass* Z_Construct_UClass_UBlueprintFunctionLibrary();
NEWCAVESYSTEMCPP_API UClass* Z_Construct_UClass_UAutoFocusFuncLib();
NEWCAVESYSTEMCPP_API UClass* Z_Construct_UClass_UAutoFocusFuncLib_NoRegister();
UPackage* Z_Construct_UPackage__Script_NewCAVESystemCpp();
// End Cross Module References
// Begin Class UAutoFocusFuncLib Function FocusGameWindow
struct Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics
{
struct AutoFocusFuncLib_eventFocusGameWindow_Parms
{
bool ReturnValue;
};
#if WITH_METADATA
static constexpr UECodeGen_Private::FMetaDataPairParam Function_MetaDataParams[] = {
{ "Category", "Window Utils" },
{ "Comment", "//module require ApplicationCore SlateCore\n" },
{ "ModuleRelativePath", "Public/AutoFocusFuncLib.h" },
{ "ToolTip", "module require ApplicationCore SlateCore" },
};
#endif // WITH_METADATA
static void NewProp_ReturnValue_SetBit(void* Obj);
static const UECodeGen_Private::FBoolPropertyParams NewProp_ReturnValue;
static const UECodeGen_Private::FPropertyParamsBase* const PropPointers[];
static const UECodeGen_Private::FFunctionParams FuncParams;
};
void Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::NewProp_ReturnValue_SetBit(void* Obj)
{
((AutoFocusFuncLib_eventFocusGameWindow_Parms*)Obj)->ReturnValue = 1;
}
const UECodeGen_Private::FBoolPropertyParams Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::NewProp_ReturnValue = { "ReturnValue", nullptr, (EPropertyFlags)0x0010000000000580, UECodeGen_Private::EPropertyGenFlags::Bool | UECodeGen_Private::EPropertyGenFlags::NativeBool, RF_Public|RF_Transient|RF_MarkAsNative, nullptr, nullptr, 1, sizeof(bool), sizeof(AutoFocusFuncLib_eventFocusGameWindow_Parms), &Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::NewProp_ReturnValue_SetBit, METADATA_PARAMS(0, nullptr) };
const UECodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::PropPointers[] = {
(const UECodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::NewProp_ReturnValue,
};
static_assert(UE_ARRAY_COUNT(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::PropPointers) < 2048);
const UECodeGen_Private::FFunctionParams Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAutoFocusFuncLib, nullptr, "FocusGameWindow", nullptr, nullptr, Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::PropPointers, UE_ARRAY_COUNT(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::PropPointers), sizeof(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::AutoFocusFuncLib_eventFocusGameWindow_Parms), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04022401, 0, 0, METADATA_PARAMS(UE_ARRAY_COUNT(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::Function_MetaDataParams), Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::Function_MetaDataParams) };
static_assert(sizeof(Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::AutoFocusFuncLib_eventFocusGameWindow_Parms) < MAX_uint16);
UFunction* Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UECodeGen_Private::ConstructUFunction(&ReturnFunction, Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow_Statics::FuncParams);
}
return ReturnFunction;
}
DEFINE_FUNCTION(UAutoFocusFuncLib::execFocusGameWindow)
{
P_FINISH;
P_NATIVE_BEGIN;
*(bool*)Z_Param__Result=UAutoFocusFuncLib::FocusGameWindow();
P_NATIVE_END;
}
// End Class UAutoFocusFuncLib Function FocusGameWindow
// Begin Class UAutoFocusFuncLib
void UAutoFocusFuncLib::StaticRegisterNativesUAutoFocusFuncLib()
{
UClass* Class = UAutoFocusFuncLib::StaticClass();
static const FNameNativePtrPair Funcs[] = {
{ "FocusGameWindow", &UAutoFocusFuncLib::execFocusGameWindow },
};
FNativeFunctionRegistrar::RegisterFunctions(Class, Funcs, UE_ARRAY_COUNT(Funcs));
}
IMPLEMENT_CLASS_NO_AUTO_REGISTRATION(UAutoFocusFuncLib);
UClass* Z_Construct_UClass_UAutoFocusFuncLib_NoRegister()
{
return UAutoFocusFuncLib::StaticClass();
}
struct Z_Construct_UClass_UAutoFocusFuncLib_Statics
{
#if WITH_METADATA
static constexpr UECodeGen_Private::FMetaDataPairParam Class_MetaDataParams[] = {
{ "Comment", "/**\n * \n */" },
{ "IncludePath", "AutoFocusFuncLib.h" },
{ "ModuleRelativePath", "Public/AutoFocusFuncLib.h" },
};
#endif // WITH_METADATA
static UObject* (*const DependentSingletons[])();
static constexpr FClassFunctionLinkInfo FuncInfo[] = {
{ &Z_Construct_UFunction_UAutoFocusFuncLib_FocusGameWindow, "FocusGameWindow" }, // 3047381597
};
static_assert(UE_ARRAY_COUNT(FuncInfo) < 2048);
static constexpr FCppClassTypeInfoStatic StaticCppClassTypeInfo = {
TCppClassTypeTraits<UAutoFocusFuncLib>::IsAbstract,
};
static const UECodeGen_Private::FClassParams ClassParams;
};
UObject* (*const Z_Construct_UClass_UAutoFocusFuncLib_Statics::DependentSingletons[])() = {
(UObject* (*)())Z_Construct_UClass_UBlueprintFunctionLibrary,
(UObject* (*)())Z_Construct_UPackage__Script_NewCAVESystemCpp,
};
static_assert(UE_ARRAY_COUNT(Z_Construct_UClass_UAutoFocusFuncLib_Statics::DependentSingletons) < 16);
const UECodeGen_Private::FClassParams Z_Construct_UClass_UAutoFocusFuncLib_Statics::ClassParams = {
&UAutoFocusFuncLib::StaticClass,
nullptr,
&StaticCppClassTypeInfo,
DependentSingletons,
FuncInfo,
nullptr,
nullptr,
UE_ARRAY_COUNT(DependentSingletons),
UE_ARRAY_COUNT(FuncInfo),
0,
0,
0x001000A0u,
METADATA_PARAMS(UE_ARRAY_COUNT(Z_Construct_UClass_UAutoFocusFuncLib_Statics::Class_MetaDataParams), Z_Construct_UClass_UAutoFocusFuncLib_Statics::Class_MetaDataParams)
};
UClass* Z_Construct_UClass_UAutoFocusFuncLib()
{
if (!Z_Registration_Info_UClass_UAutoFocusFuncLib.OuterSingleton)
{
UECodeGen_Private::ConstructUClass(Z_Registration_Info_UClass_UAutoFocusFuncLib.OuterSingleton, Z_Construct_UClass_UAutoFocusFuncLib_Statics::ClassParams);
}
return Z_Registration_Info_UClass_UAutoFocusFuncLib.OuterSingleton;
}
template<> NEWCAVESYSTEMCPP_API UClass* StaticClass<UAutoFocusFuncLib>()
{
return UAutoFocusFuncLib::StaticClass();
}
UAutoFocusFuncLib::UAutoFocusFuncLib(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) {}
DEFINE_VTABLE_PTR_HELPER_CTOR(UAutoFocusFuncLib);
UAutoFocusFuncLib::~UAutoFocusFuncLib() {}
// End Class UAutoFocusFuncLib
// Begin Registration
struct Z_CompiledInDeferFile_FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_Statics
{
static constexpr FClassRegisterCompiledInInfo ClassInfo[] = {
{ Z_Construct_UClass_UAutoFocusFuncLib, UAutoFocusFuncLib::StaticClass, TEXT("UAutoFocusFuncLib"), &Z_Registration_Info_UClass_UAutoFocusFuncLib, CONSTRUCT_RELOAD_VERSION_INFO(FClassReloadVersionInfo, sizeof(UAutoFocusFuncLib), 3271052711U) },
};
};
static FRegisterCompiledInInfo Z_CompiledInDeferFile_FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_2353918424(TEXT("/Script/NewCAVESystemCpp"),
Z_CompiledInDeferFile_FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_Statics::ClassInfo, UE_ARRAY_COUNT(Z_CompiledInDeferFile_FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_Statics::ClassInfo),
nullptr, 0,
nullptr, 0);
// End Registration
PRAGMA_ENABLE_DEPRECATION_WARNINGS

View File

@ -0,0 +1,61 @@
// Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
===========================================================================*/
// IWYU pragma: private, include "AutoFocusFuncLib.h"
#include "UObject/ObjectMacros.h"
#include "UObject/ScriptMacros.h"
PRAGMA_DISABLE_DEPRECATION_WARNINGS
#ifdef NEWCAVESYSTEMCPP_AutoFocusFuncLib_generated_h
#error "AutoFocusFuncLib.generated.h already included, missing '#pragma once' in AutoFocusFuncLib.h"
#endif
#define NEWCAVESYSTEMCPP_AutoFocusFuncLib_generated_h
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_RPC_WRAPPERS_NO_PURE_DECLS \
DECLARE_FUNCTION(execFocusGameWindow);
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_INCLASS_NO_PURE_DECLS \
private: \
static void StaticRegisterNativesUAutoFocusFuncLib(); \
friend struct Z_Construct_UClass_UAutoFocusFuncLib_Statics; \
public: \
DECLARE_CLASS(UAutoFocusFuncLib, UBlueprintFunctionLibrary, COMPILED_IN_FLAGS(0), CASTCLASS_None, TEXT("/Script/NewCAVESystemCpp"), NO_API) \
DECLARE_SERIALIZER(UAutoFocusFuncLib)
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_ENHANCED_CONSTRUCTORS \
/** Standard constructor, called after all reflected properties have been initialized */ \
NO_API UAutoFocusFuncLib(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()); \
private: \
/** Private move- and copy-constructors, should never be used */ \
UAutoFocusFuncLib(UAutoFocusFuncLib&&); \
UAutoFocusFuncLib(const UAutoFocusFuncLib&); \
public: \
DECLARE_VTABLE_PTR_HELPER_CTOR(NO_API, UAutoFocusFuncLib); \
DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(UAutoFocusFuncLib); \
DEFINE_DEFAULT_OBJECT_INITIALIZER_CONSTRUCTOR_CALL(UAutoFocusFuncLib) \
NO_API virtual ~UAutoFocusFuncLib();
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_18_PROLOG
#define FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_GENERATED_BODY \
PRAGMA_DISABLE_DEPRECATION_WARNINGS \
public: \
FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_RPC_WRAPPERS_NO_PURE_DECLS \
FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_INCLASS_NO_PURE_DECLS \
FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h_21_ENHANCED_CONSTRUCTORS \
private: \
PRAGMA_ENABLE_DEPRECATION_WARNINGS
template<> NEWCAVESYSTEMCPP_API UClass* StaticClass<class UAutoFocusFuncLib>();
#undef CURRENT_FILE_ID
#define CURRENT_FILE_ID FID_HostProject_Plugins_NewCAVESystemCpp_Source_NewCAVESystemCpp_Public_AutoFocusFuncLib_h
PRAGMA_ENABLE_DEPRECATION_WARNINGS

View File

@ -17,13 +17,13 @@ void EmptyLinkFunctionForGeneratedCodeNewCAVESystemCpp_init() {}
nullptr,
0,
PKG_CompiledIn | 0x00000000,
0xE0FB5AB6,
0xB5BF78B4,
0xD6E07E6A,
0x045301CD,
METADATA_PARAMS(0, nullptr)
};
UECodeGen_Private::ConstructUPackage(Z_Registration_Info_UPackage__Script_NewCAVESystemCpp.OuterSingleton, PackageParams);
}
return Z_Registration_Info_UPackage__Script_NewCAVESystemCpp.OuterSingleton;
}
static FRegisterCompiledInInfo Z_CompiledInDeferPackage_UPackage__Script_NewCAVESystemCpp(Z_Construct_UPackage__Script_NewCAVESystemCpp, TEXT("/Script/NewCAVESystemCpp"), Z_Registration_Info_UPackage__Script_NewCAVESystemCpp, CONSTRUCT_RELOAD_VERSION_INFO(FPackageReloadVersionInfo, 0xE0FB5AB6, 0xB5BF78B4));
static FRegisterCompiledInInfo Z_CompiledInDeferPackage_UPackage__Script_NewCAVESystemCpp(Z_Construct_UPackage__Script_NewCAVESystemCpp, TEXT("/Script/NewCAVESystemCpp"), Z_Registration_Info_UPackage__Script_NewCAVESystemCpp, CONSTRUCT_RELOAD_VERSION_INFO(FPackageReloadVersionInfo, 0xD6E07E6A, 0x045301CD));
PRAGMA_ENABLE_DEPRECATION_WARNINGS

View File

@ -1,6 +1,7 @@
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_PlayerControllerBase.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_GameSession.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\NewCAVESystemCppBPLibrary.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\EdnParser.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_PawnBase.h
D:\ProjectTemp\UE55PluginDev\PackagedPlugins\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\ControllerActorTypes.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\AutoFocusFuncLib.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_GameSession.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\NewCAVESystemCppBPLibrary.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\ControllerActorTypes.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\EdnParser.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_PlayerControllerBase.h
D:\ProjectTemp\UE55PluginDev\TestPackage\NewCAVESystemCpp\HostProject\Plugins\NewCAVESystemCpp\Source\NewCAVESystemCpp\Public\CA_PawnBase.h

View File

@ -0,0 +1,84 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "AutoFocusFuncLib.h"
#include "Engine/Engine.h"
#include "Engine/GameViewportClient.h"
#include "Misc/App.h"
#include "Widgets/SWindow.h"
#if PLATFORM_WINDOWS
#include "Windows/WindowsApplication.h"
#include "Windows/AllowWindowsPlatformTypes.h"
#include <Windows.h>
#include <dwmapi.h>
#include "Windows/HideWindowsPlatformTypes.h"
#endif
bool UAutoFocusFuncLib::FocusGameWindow()
{
#if PLATFORM_WINDOWS
if (GEngine && GEngine->GameViewport)
{
TSharedPtr<SWindow> Window = GEngine->GameViewport->GetWindow();
if (Window.IsValid())
{
TSharedPtr<FGenericWindow> NativeWindow = Window->GetNativeWindow();
if (NativeWindow.IsValid())
{
HWND hWnd = static_cast<HWND>(NativeWindow->GetOSWindowHandle());
return FocusWindow(hWnd);
}
}
}
#endif
return false;
}
#if PLATFORM_WINDOWS
bool UAutoFocusFuncLib::FocusWindow(HWND hWnd)
{
if (!IsWindowValid(hWnd)) return false;
// 如果窗口最小化,则恢复
if (IsIconic(hWnd))
{
ShowWindow(hWnd, SW_RESTORE);
}
// 将窗口置于前台
BringToFront(hWnd);
// 设置键盘焦点
SetFocus(hWnd);
return true;
}
void UAutoFocusFuncLib::BringToFront(HWND hWnd)
{
// 尝试使用SetForegroundWindow
if (SetForegroundWindow(hWnd)) return;
// 如果失败,使用备选方法
DWORD ForegroundThreadID = GetWindowThreadProcessId(GetForegroundWindow(), NULL);
DWORD CurrentThreadID = GetCurrentThreadId();
// 附加到前台线程
if (AttachThreadInput(CurrentThreadID, ForegroundThreadID, Windows::TRUE))
{
BringWindowToTop(hWnd);
ShowWindow(hWnd, SW_SHOW);
AttachThreadInput(CurrentThreadID, ForegroundThreadID, Windows::FALSE);
}
// 最后尝试使用SetWindowPos
SetWindowPos(hWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
}
bool UAutoFocusFuncLib::IsWindowValid(HWND hWnd)
{
return hWnd && IsWindow(hWnd) && IsWindowVisible(hWnd);
}
#endif

View File

@ -0,0 +1,34 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#if PLATFORM_WINDOWS
#include "Microsoft/AllowMicrosoftPlatformTypes.h"
#include "Microsoft/HideMicrosoftPlatformTypes.h"
#endif
#include "AutoFocusFuncLib.generated.h"
/**
*
*/
UCLASS()
class NEWCAVESYSTEMCPP_API UAutoFocusFuncLib : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
//module require ApplicationCore SlateCore
UFUNCTION(BlueprintCallable, Category = "Window Utils")
static bool FocusGameWindow();
private:
#if PLATFORM_WINDOWS
// Windows 原生 API 封装
static bool FocusWindow(HWND hWnd);
static void BringToFront(HWND hWnd);
static bool IsWindowValid(HWND hWnd);
#endif
};