Cyrus Mod Loader
|
#include <CoreObject.h>
Public Member Functions | |
template<class T > | |
T * | findChild (const std::string &name) |
Find a child CoreObject by name and cast it to the specified type. | |
template<class T > | |
T * | findDescendant (const std::string &name) |
Find a descendant CoreObject by name and cast it to the specified type. | |
CoreObject * | getRoot () |
std::vector< std::shared_ptr< CoreObject > > | getChildren () |
![]() | |
virtual char * | getClassName ()=0 |
Gets the class name of the derived class in the format class T[*] . | |
virtual void * | getPropertyList ()=0 |
Constructs and caches the PropertyList for the derived class, adding all reflected members and member functions. | |
virtual bool | copy (uint32_t a1)=0 |
Copies the property class data. | |
virtual void * | serialize (void *a2, uint32_t a3)=0 |
Serializes the derived class's PropertyList as XML. | |
virtual bool | onCreated ()=0 |
Called when the PropertyClass is created. | |
template<typename T > | |
CYRUS T * | as () |
Casts this to a pointer of type T. | |
virtual void | onPostLoad ()=0 |
Called when the PropertyClass is loaded, i.e., initialize is called and onCreated has finished. | |
virtual void | onFinalizeLoad ()=0 |
virtual bool | shouldNotSerialize ()=0 |
Determines if the PropertyClass should not be serialized. | |
Public Attributes | |
uint64_t | globalID |
uint64_t | permID |
WizGameObjectTemplate * | m_template |
uint64_t | templateID |
std::string | debugName |
std::string | displayKey |
Vector3D | location |
Vector3D | orentiation |
short | speedMultiplier |
unsigned short | mobileID |
float | scale |
void * | unk1 |
CoreObject * | parent |
SharedObjectDeleter< CoreObject * > * | deleter |
std::vector< std::shared_ptr< BehaviorInstance > > | inactiveBehaviors |
std::vector< std::shared_ptr< BehaviorInstance > > | activeBehaviors |
void * | unk2 |
void * | unk3 |
void * | unk4 |
void * | unk5 |
void * | zoneData |
void * | unk6 |
void * | unk7 |
void * | unk8 |
void * | unk9 |
uint32_t | zoneTagID |
uint32_t | pad |
void * | unk10 |
void * | unk11 |
void * | unk12 |
void * | unk13 |
std::vector< std::shared_ptr< CoreObject > > | children |
Friends | |
struct | CoreObjectLayout |
|
inline |
Find a child CoreObject by name and cast it to the specified type.
This function searches through the immediate children of the current CoreObject to find a child with the specified name. If a matching child is found, it is cast to the specified type T
and returned. If no matching child is found, the function returns nullptr
.
T | The type to which the found child should be cast. |
name | The name of the child Window to find. |
T
, or nullptr
if no matching child is found.
|
inline |
Find a descendant CoreObject by name and cast it to the specified type.
This function searches through the immediate children and all their descendants of the current CoreObject to find a descendant with the specified name. If a matching descendant is found, it is cast to the specified type T
and returned. If no matching descendant is found, the function returns nullptr
.
T | The type to which the found descendant should be cast. |
name | The name of the descendant CoreObject to find. |
T
, or nullptr
if no matching descendant is found.
|
inline |
|
inline |
|
friend |
std::vector<std::shared_ptr<BehaviorInstance> > CoreObject::activeBehaviors |
std::vector<std::shared_ptr<CoreObject> > CoreObject::children |
std::string CoreObject::debugName |
SharedObjectDeleter<CoreObject *>* CoreObject::deleter |
std::string CoreObject::displayKey |
uint64_t CoreObject::globalID |
std::vector<std::shared_ptr<BehaviorInstance> > CoreObject::inactiveBehaviors |
Vector3D CoreObject::location |
WizGameObjectTemplate* CoreObject::m_template |
unsigned short CoreObject::mobileID |
Vector3D CoreObject::orentiation |
uint32_t CoreObject::pad |
CoreObject* CoreObject::parent |
uint64_t CoreObject::permID |
float CoreObject::scale |
short CoreObject::speedMultiplier |
uint64_t CoreObject::templateID |
void* CoreObject::unk1 |
void* CoreObject::unk10 |
void* CoreObject::unk11 |
void* CoreObject::unk12 |
void* CoreObject::unk13 |
void* CoreObject::unk2 |
void* CoreObject::unk3 |
void* CoreObject::unk4 |
void* CoreObject::unk5 |
void* CoreObject::unk6 |
void* CoreObject::unk7 |
void* CoreObject::unk8 |
void* CoreObject::unk9 |
void* CoreObject::zoneData |
uint32_t CoreObject::zoneTagID |