/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Editor/EditorFramework/Document/GameObjectContextDocument.h
41 строка
1 KB
Sanakan8472
Convert ezToolsFoundation to use ezStringView instead of const char* (#1071)
30 сен 2023, 17:40
Не верифицирован
30 сен 2023, 17:40
123eb05
Код
Авторство
О чём код?
#pragma once #include <EditorFramework/Document/GameObjectDocument.h> #include <EditorFramework/EditorFrameworkDLL.h> struct EZ_EDITORFRAMEWORK_DLL ezGameObjectContextEvent { enum class Type { ContextAboutToBeChanged, ContextChanged, }; Type m_Type; }; class EZ_EDITORFRAMEWORK_DLL ezGameObjectContextDocument : public ezGameObjectDocument { EZ_ADD_DYNAMIC_REFLECTION(ezGameObjectContextDocument, ezGameObjectDocument); public: ezGameObjectContextDocument(ezStringView sDocumentPath, ezDocumentObjectManager* pObjectManager, ezAssetDocEngineConnection engineConnectionType = ezAssetDocEngineConnection::FullObjectMirroring); ~ezGameObjectContextDocument(); ezStatus SetContext(ezUuid documentGuid, ezUuid objectGuid); ezUuid GetContextDocumentGuid() const; ezUuid GetContextObjectGuid() const; const ezDocumentObject* GetContextObject() const; mutable ezEvent<const ezGameObjectContextEvent&> m_GameObjectContextEvents; protected: virtual void InitializeAfterLoading(bool bFirstTimeCreation) override; private: void ClearContext(); private: ezUuid m_ContextDocument; ezUuid m_ContextObject; };