![]() |
ezEngine
Release 25.03
|
The world rtti converter context tracks created objects and is capable of also handling components / game objects. Used by the ezIPCObjectMirror to create / destroy objects. More...
#include <WorldRttiConverterContext.h>
Classes | |
struct | Event |
Public Member Functions | |
virtual void | Clear () override |
void | DeleteExistingObjects () |
virtual ezInternal::NewInstance< void > | CreateObject (const ezUuid &guid, const ezRTTI *pRtti) override |
virtual void | DeleteObject (const ezUuid &guid) override |
virtual void | RegisterObject (const ezUuid &guid, const ezRTTI *pRtti, void *pObject) override |
virtual void | UnregisterObject (const ezUuid &guid) override |
virtual ezRttiConverterObject | GetObjectByGUID (const ezUuid &guid) const override |
virtual ezUuid | GetObjectGUID (const ezRTTI *pRtti, const void *pObject) const override |
virtual void | OnUnknownTypeError (ezStringView sTypeName) override |
![]() | |
virtual ezUuid | GenerateObjectGuid (const ezUuid &parentGuid, const ezAbstractProperty *pProp, ezVariant index, void *pObject) const |
Generates a guid for a new object. Default implementation generates stable guids derived from parentGuid + property name + index and ignores the address of pObject. | |
virtual const ezRTTI * | FindTypeByName (ezStringView sName) const |
template<typename T > | |
void | GetObjectsByType (ezDynamicArray< T * > &out_objects, ezDynamicArray< ezUuid > *out_pUuids=nullptr) |
virtual ezUuid | EnqueObject (const ezUuid &guid, const ezRTTI *pRtti, void *pObject) |
virtual ezRttiConverterObject | DequeueObject () |
Public Attributes | |
ezWorld * | m_pWorld = nullptr |
ezEditorGuidEngineHandleMap< ezGameObjectHandle > | m_GameObjectMap |
ezEditorGuidEngineHandleMap< ezComponentHandle > | m_ComponentMap |
ezEditorGuidEngineHandleMap< ezUInt32 > | m_OtherPickingMap |
ezEditorGuidEngineHandleMap< ezUInt32 > | m_ComponentPickingMap |
ezUInt32 | m_uiNextComponentPickingID = 1 |
ezUInt32 | m_uiHighlightID = 1 |
ezEvent< const Event & > | m_Events |
ezSet< ezString > | m_UnknownTypes |
Additional Inherited Members | |
![]() | |
ezHashTable< ezUuid, ezRttiConverterObject > | m_GuidToObject |
ezHashTable< const void *, ezUuid > | m_ObjectToGuid |
ezSet< ezUuid > | m_QueuedObjects |
The world rtti converter context tracks created objects and is capable of also handling components / game objects. Used by the ezIPCObjectMirror to create / destroy objects.
Atm it does not remove owner ptr when a parent is deleted, so it will accumulate zombie entries. As requests to dead objects shouldn't generally happen this is for the time being not a problem.