![]() |
ezEngine
Release 25.03
|
Stores meta data for document objects that is not part of the object itself. E.g. editor-only states like hidden or prefab information. More...
#include <ObjectMetaData.h>
Classes | |
struct | EventData |
class | Storage |
Public Member Functions | |
bool | HasMetaData (const KEY objectKey) const |
void | ClearMetaData (const KEY objectKey) |
const VALUE * | BeginReadMetaData (const KEY objectKey) const |
Will always return a non-null result. May be a default object. | |
void | EndReadMetaData () const |
VALUE * | BeginModifyMetaData (const KEY objectKey) |
void | EndModifyMetaData (ezUInt32 uiModifiedFlags=0xFFFFFFFF) |
ezMutex & | GetMutex () const |
const VALUE & | GetDefaultValue () const |
void | AttachMetaDataToAbstractGraph (ezAbstractObjectGraph &inout_graph) const |
Uses reflection information from VALUE to store all properties that differ from the default value as additional properties for the graph objects. | |
void | RestoreMetaDataFromAbstractGraph (const ezAbstractObjectGraph &graph) |
Uses reflection information from VALUE to restore all meta data properties from the graph. | |
ezSharedPtr< ezObjectMetaData< KEY, VALUE >::Storage > | SwapStorage (ezSharedPtr< ezObjectMetaData< KEY, VALUE >::Storage > pNewStorage) |
ezSharedPtr< ezObjectMetaData< KEY, VALUE >::Storage > | GetStorage () |
Public Attributes | |
ezEvent< const EventData & > | m_DataModifiedEvent |
Stores meta data for document objects that is not part of the object itself. E.g. editor-only states like hidden or prefab information.
KEY | The key under which data is stored. Usually ezUuid to reference document objects. |
VALUE | Meta value type to be stored. |