Skip to content

Instantly share code, notes, and snippets.

@the-unrealist
Created January 18, 2024 23:49
Show Gist options
  • Select an option

  • Save the-unrealist/0aa6b16d1a89c13cd0065b685b9a0bce to your computer and use it in GitHub Desktop.

Select an option

Save the-unrealist/0aa6b16d1a89c13cd0065b685b9a0bce to your computer and use it in GitHub Desktop.
Code generated by the Unreal Header Tool for an example UObject class
// 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 "ExampleModule/Public/Example.h"
PRAGMA_DISABLE_DEPRECATION_WARNINGS
void EmptyLinkFunctionForGeneratedCodeExample() {}
// Cross Module References
COREUOBJECT_API UClass* Z_Construct_UClass_UObject();
EXAMPLEMODULE_API UClass* Z_Construct_UClass_UExample();
EXAMPLEMODULE_API UClass* Z_Construct_UClass_UExample_NoRegister();
UPackage* Z_Construct_UPackage__Script_ExampleModule();
// End Cross Module References
void UExample::StaticRegisterNativesUExample()
{
}
IMPLEMENT_CLASS_NO_AUTO_REGISTRATION(UExample);
UClass* Z_Construct_UClass_UExample_NoRegister()
{
return UExample::StaticClass();
}
struct Z_Construct_UClass_UExample_Statics
{
static UObject* (*const DependentSingletons[])();
#if WITH_METADATA
static const UECodeGen_Private::FMetaDataPairParam Class_MetaDataParams[];
#endif
static const FCppClassTypeInfoStatic StaticCppClassTypeInfo;
static const UECodeGen_Private::FClassParams ClassParams;
};
UObject* (*const Z_Construct_UClass_UExample_Statics::DependentSingletons[])() = {
(UObject* (*)())Z_Construct_UClass_UObject,
(UObject* (*)())Z_Construct_UPackage__Script_ExampleModule,
};
static_assert(UE_ARRAY_COUNT(Z_Construct_UClass_UExample_Statics::DependentSingletons) < 16);
#if WITH_METADATA
const UECodeGen_Private::FMetaDataPairParam Z_Construct_UClass_UExample_Statics::Class_MetaDataParams[] = {
#if !UE_BUILD_SHIPPING
{ "Comment", "/** This is an example UObject. */" },
#endif
{ "IncludePath", "Example.h" },
{ "ModuleRelativePath", "Public/Example.h" },
#if !UE_BUILD_SHIPPING
{ "ToolTip", "This is an example UObject." },
#endif
};
#endif
const FCppClassTypeInfoStatic Z_Construct_UClass_UExample_Statics::StaticCppClassTypeInfo = {
TCppClassTypeTraits<UExample>::IsAbstract,
};
const UECodeGen_Private::FClassParams Z_Construct_UClass_UExample_Statics::ClassParams = {
&UExample::StaticClass,
nullptr,
&StaticCppClassTypeInfo,
DependentSingletons,
nullptr,
nullptr,
nullptr,
UE_ARRAY_COUNT(DependentSingletons),
0,
0,
0,
0x000000A0u,
METADATA_PARAMS(UE_ARRAY_COUNT(Z_Construct_UClass_UExample_Statics::Class_MetaDataParams), Z_Construct_UClass_UExample_Statics::Class_MetaDataParams)
};
UClass* Z_Construct_UClass_UExample()
{
if (!Z_Registration_Info_UClass_UExample.OuterSingleton)
{
UECodeGen_Private::ConstructUClass(Z_Registration_Info_UClass_UExample.OuterSingleton, Z_Construct_UClass_UExample_Statics::ClassParams);
}
return Z_Registration_Info_UClass_UExample.OuterSingleton;
}
template<> EXAMPLEMODULE_API UClass* StaticClass<UExample>()
{
return UExample::StaticClass();
}
UExample::UExample(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) {}
DEFINE_VTABLE_PTR_HELPER_CTOR(UExample);
UExample::~UExample() {}
struct Z_CompiledInDeferFile_FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_Statics
{
static const FClassRegisterCompiledInInfo ClassInfo[];
};
const FClassRegisterCompiledInInfo Z_CompiledInDeferFile_FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_Statics::ClassInfo[] = {
{ Z_Construct_UClass_UExample, UExample::StaticClass, TEXT("UExample"), &Z_Registration_Info_UClass_UExample, CONSTRUCT_RELOAD_VERSION_INFO(FClassReloadVersionInfo, sizeof(UExample), 9239965U) },
};
static FRegisterCompiledInInfo Z_CompiledInDeferFile_FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_3576336262(TEXT("/Script/ExampleModule"),
Z_CompiledInDeferFile_FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_Statics::ClassInfo, UE_ARRAY_COUNT(Z_CompiledInDeferFile_FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_Statics::ClassInfo),
nullptr, 0,
nullptr, 0);
PRAGMA_ENABLE_DEPRECATION_WARNINGS
// 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 "Example.h"
#include "UObject/ObjectMacros.h"
#include "UObject/ScriptMacros.h"
PRAGMA_DISABLE_DEPRECATION_WARNINGS
#ifdef EXAMPLEMODULE_Example_generated_h
#error "Example.generated.h already included, missing '#pragma once' in Example.h"
#endif
#define EXAMPLEMODULE_Example_generated_h
#define FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_SPARSE_DATA
#define FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_SPARSE_DATA_PROPERTY_ACCESSORS
#define FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_EDITOR_ONLY_SPARSE_DATA_PROPERTY_ACCESSORS
#define FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_RPC_WRAPPERS_NO_PURE_DECLS
#define FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_ACCESSORS
#define FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_INCLASS_NO_PURE_DECLS \
private: \
static void StaticRegisterNativesUExample(); \
friend struct Z_Construct_UClass_UExample_Statics; \
public: \
DECLARE_CLASS(UExample, UObject, COMPILED_IN_FLAGS(0), CASTCLASS_None, TEXT("/Script/ExampleModule"), NO_API) \
DECLARE_SERIALIZER(UExample)
#define FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_ENHANCED_CONSTRUCTORS \
/** Standard constructor, called after all reflected properties have been initialized */ \
NO_API UExample(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()); \
private: \
/** Private move- and copy-constructors, should never be used */ \
NO_API UExample(UExample&&); \
NO_API UExample(const UExample&); \
public: \
DECLARE_VTABLE_PTR_HELPER_CTOR(NO_API, UExample); \
DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(UExample); \
DEFINE_DEFAULT_OBJECT_INITIALIZER_CONSTRUCTOR_CALL(UExample) \
NO_API virtual ~UExample();
#define FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_6_PROLOG
#define FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_GENERATED_BODY \
PRAGMA_DISABLE_DEPRECATION_WARNINGS \
public: \
FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_SPARSE_DATA \
FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_SPARSE_DATA_PROPERTY_ACCESSORS \
FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_EDITOR_ONLY_SPARSE_DATA_PROPERTY_ACCESSORS \
FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_RPC_WRAPPERS_NO_PURE_DECLS \
FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_ACCESSORS \
FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_INCLASS_NO_PURE_DECLS \
FID_Games_RPGCore_Source_ExampleModule_Public_Example_h_9_ENHANCED_CONSTRUCTORS \
private: \
PRAGMA_ENABLE_DEPRECATION_WARNINGS
template<> EXAMPLEMODULE_API UClass* StaticClass<class UExample>();
#undef CURRENT_FILE_ID
#define CURRENT_FILE_ID FID_Games_RPGCore_Source_ExampleModule_Public_Example_h
PRAGMA_ENABLE_DEPRECATION_WARNINGS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment