13#include "UObjectBase.h"
14#include "GFrameworkMacros.h"
25 typedef UClass* (*StaticClassFunctionType)();
35 T::__DefaultConstructor(X);
64 KARMA_API
void GetPrivateStaticClassBody(
65 const std::string& PackageName,
66 const std::string& Name,
74 ClassConstructorType InClassConstructor,
77 StaticClassFunctionType InSuperClassFn
89 KARMA_API
void InitializePrivateStaticClass(
90 class UClass* TClass_Super_StaticClass,
91 class UClass* TClass_PrivateStaticClass,
92 class UClass* TClass_WithinClass_StaticClass,
93 const std::string& PackageName,
94 const std::string& Name
141 virtual void FinishDestroy();
149 virtual const std::string&
GetDesc() {
static std::string someString =
"";
return someString; }
159 virtual class UWorld* GetWorld()
const;
169 bool IsValidChecked(
const UObject* Test);
178 virtual void BeginDestroy();
192 virtual bool Modify(
bool bAlwaysMarkDirty =
true);
195 bool CanModify()
const;
197 FORCEINLINE
bool Modify(
bool bAlwaysMarkDirty =
true) {
return false; }
208 bool IsSelected()
const;
219 KR_CORE_ASSERT(GUObjectStore.
IndexToObject(Test->GetInterIndex())->HasAnyFlags(EInternalObjectFlags(int32_t(EInternalObjectFlags::PendingKill) | int32_t(EInternalObjectFlags::Garbage))) == Test->
HasAnyFlags(EObjectFlags(RF_PendingKill | RF_Garbage)),
"");
221 return !Test->
HasAnyFlags(EObjectFlags(RF_PendingKill | RF_Garbage));
void InternalConstructor(const FObjectInitializer &X)
Helper template to call the default constructor for a class.
Definition Object.h:33
FORCEINLINE bool IsValid(const UObject *Test)
Test validity of object.
Definition Object.h:232
FORCEINLINE bool TentativeFlagChecks(const UObject *Test)
Note the name. Need to understand UE's take upon the subject.
Definition Object.h:217
FORCEINLINE BuildingBlock & IndexToObject(int32_t Index)
Definition KarmaTypes.h:308
Definition UObjectGlobals.h:738
Low level implementation of UObject, should not be used directly in game code Taken from UE's UObject...
Definition UObjectBase.h:34
FORCEINLINE bool HasAnyFlags(EObjectFlags FlagsToCheck) const
Definition UObjectBase.h:256
The base class of all the game code relevant objects.
Definition Object.h:106
FORCEINLINE bool Modify(bool bAlwaysMarkDirty=true)
Definition Object.h:197
static const char * StaticConfigName()
Definition Object.h:128
virtual const std::string & GetDesc()
Return a one line description of an object for viewing in the thumbnail view of the generic browser.
Definition Object.h:149