|
KarmaEngine
Game Engine for practical learning and research purposes
|
This file contains the class UObject along with helper functions. More...


Go to the source code of this file.
Classes | |
| class | Karma::UObject |
| The base class of all the game code relevant objects. More... | |
Typedefs | |
| typedef UClass *(* | Karma::StaticClassFunctionType) () |
Functions | |
| template<class T> | |
| void | Karma::InternalConstructor (const FObjectInitializer &X) |
| Helper template to call the default constructor for a class. | |
| void | Karma::GetPrivateStaticClassBody (const std::string &PackageName, const std::string &Name, UClass *&ReturnClass, size_t InSize, size_t InAlignment, ClassConstructorType InClassConstructor, StaticClassFunctionType InSuperClassFn) |
| Helper template to allocate and construct a UClass. | |
| void | Karma::InitializePrivateStaticClass (class UClass *TClass_Super_StaticClass, class UClass *TClass_PrivateStaticClass, class UClass *TClass_WithinClass_StaticClass, const std::string &PackageName, const std::string &Name) |
| FORCEINLINE bool | Karma::TentativeFlagChecks (const UObject *Test) |
| Note the name. Need to understand UE's take upon the subject. | |
| FORCEINLINE bool | Karma::IsValid (const UObject *Test) |
| Test validity of object. | |
This file contains the class UObject along with helper functions.
| typedef UClass *(* Karma::StaticClassFunctionType) () |
A function pointer with UClass return type.
| KARMA_API void Karma::GetPrivateStaticClassBody | ( | const std::string & | PackageName, |
| const std::string & | Name, | ||
| UClass *& | ReturnClass, | ||
| size_t | InSize, | ||
| size_t | InAlignment, | ||
| ClassConstructorType | InClassConstructor, | ||
| StaticClassFunctionType | InSuperClassFn ) |
Helper template to allocate and construct a UClass.
In UE, this helper is declared and defined in Class.h/.cpp. I don't know how that worked, hehe.
| PackageName | name of the package this class will be inside |
| Name | of the class |
| ReturnClass | reference to pointer to result. This must be PrivateStaticClass. |
| RegisterNativeFunc | Native function registration function pointer. |
| InSize | Size of the class |
| InAlignment | Alignment of the class |
| InClassFlags | Class flags |
| InClassCastFlags | Class cast flags |
| InConfigName | Class config name |
| InClassConstructor | Class constructor function pointer |
| InClassVTableHelperCtorCaller | Class constructor function for vtable pointer |
| InCppClassStaticFunctions | Function pointers for the class's version of Unreal's reflected static functions |
| InSuperClassFn | Super class function pointer |
| WithinClass | Within class |
| KARMA_API void Karma::InitializePrivateStaticClass | ( | class UClass * | TClass_Super_StaticClass, |
| class UClass * | TClass_PrivateStaticClass, | ||
| class UClass * | TClass_WithinClass_StaticClass, | ||
| const std::string & | PackageName, | ||
| const std::string & | Name ) |
Shared function called from the various InitializePrivateStaticClass functions generated my the DECLARE_KARMA_CLASS macro. Basically sets up the class hierarchy by setting UStruct::m_SuperStruct with TClass_Super_StaticClass
| TClass_Super_StaticClass | The class which is base for this class |
| TClass_PrivateStaticClass | The current class which is being initialized |
| void Karma::InternalConstructor | ( | const FObjectInitializer & | X | ) |
Helper template to call the default constructor for a class.
| FORCEINLINE bool Karma::IsValid | ( | const UObject * | Test | ) |
Test validity of object.
| Test | The object to test |
| FORCEINLINE bool Karma::TentativeFlagChecks | ( | const UObject * | Test | ) |
Note the name. Need to understand UE's take upon the subject.