![]() |
XII Release 0.1.0
|
Add this attribute to an embedded class or container property to make it retrieve its default values from a dynamic meta info object on an asset. More...
#include <PropertyAttributes.h>
Public Member Functions | |
xiiDynamicDefaultValueAttribute (xiiStringView sClassSource, xiiStringView sClassType, xiiStringView sClassProperty={}) | |
xiiStringView | GetClassSource () const |
xiiStringView | GetClassType () const |
xiiStringView | GetClassProperty () const |
![]() | |
virtual const xiiRTTI * | GetDynamicRTTI () const |
bool | IsInstanceOf (const xiiRTTI *pType) const |
Returns whether the type of this instance is of the given type or derived from it. | |
template<typename T> | |
XII_ALWAYS_INLINE bool | IsInstanceOf () const |
Returns whether the type of this instance is of the given type or derived from it. | |
Additional Inherited Members | |
![]() | |
static const xiiRTTI * | GetStaticRTTI () |
Add this attribute to an embedded class or container property to make it retrieve its default values from a dynamic meta info object on an asset.
The default values are retrieved from the asset meta data of the currently set asset on that property.
Usage: XII_ACCESSOR_PROPERTY("Skeleton", GetSkeletonFile, SetSkeletonFile)->AddAttributes(new xiiAssetBrowserAttribute("Skeleton")),
// Use this if the embedded class m_SkeletonMetaData is of type xiiSkeletonMetaData. XII_MEMBER_PROPERTY("SkeletonMetaData", m_SkeletonMetaData)->AddAttributes(new xiiDynamicDefaultValueAttribute("Skeleton", "xiiSkeletonMetaData")),
// Use this if you don't want embed the entire meta object but just some container of it. In this case the LocalBones container must match in type to the property 'BonesArrayNameInMetaData' in the meta data type 'xiiSkeletonMetaData'. XII_MAP_MEMBER_PROPERTY("LocalBones", m_Bones)->AddAttributes(new xiiDynamicDefaultValueAttribute("Skeleton", "xiiSkeletonMetaData", "BonesArrayNameInMetaData")),