28 UClass* GetOwnerClass()
const;
38 const std::string& GetAuthoredName()
const;
55 bool IsChildOf(
const UStruct* SomeBase)
const;
66 return m_PropertiesSize;
73 virtual void SetSuperStruct(
UStruct* NewSuperStruct);
105 UClass(
const std::string& name);
112 UClass(
const std::string& name,
size_t size,
size_t alignment, ClassConstructorType inClassConstructor);
127 virtual const std::string& GetDesc()
override;
139 return EnumHasAnyFlags(m_ClassFlags, FlagsToCheck) != 0;
155 if ( bCreateIfNeeded)
158 const_cast<UClass*
>(
this)->CreateDefaultObject();
171 UObject* Ret = GetDefaultObject();
172 KR_CORE_ASSERT(Ret->
IsA(T::StaticClass()),
"Class {0} is not subclass of UObject");
179 return (
UClass*)GetSuperStruct();
185 return m_MinAlignment;
189 virtual void SetSuperStruct(
UStruct* NewSuperStruct)
override;
205 virtual UObject* CreateDefaultObject();
This file contains the class UObject along with helper functions.
Definition UObjectGlobals.h:738
UClass * GetSuperClass() const
Definition Class.h:177
T * GetDefaultObject() const
Definition Class.h:169
virtual void InitPropertiesFromCustomList(uint8_t *DataPtr, const uint8_t *DefaultDataPtr)
Definition Class.h:198
EClassFlags m_ClassFlags
Definition Class.h:123
FORCEINLINE size_t GetMinAlignment() const
Definition Class.h:183
UObject * GetDefaultObject(bool bCreateIfNeeded=true) const
Definition Class.h:153
FORCEINLINE bool HasAnyClassFlags(EClassFlags FlagsToCheck) const
Definition Class.h:137
virtual void SetupObjectInitializer(FObjectInitializer &ObjectInitializer) const
Definition Class.h:146
ClassConstructorType m_ClassConstructor
Definition Class.h:120
FORCEINLINE bool IsA(OtherClassType SomeBase) const
Definition UObjectBase.h:187
The base class of all the game code relevant objects.
Definition Object.h:106
FORCEINLINE size_t GetPropertiesSize() const
Definition Class.h:64
size_t m_MinAlignment
Definition Class.h:92
UStruct * GetSuperStruct() const
Definition Class.h:58
size_t m_PropertiesSize
Definition Class.h:88