/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/UnitTests/ToolsFoundationTest/Object/TestObjectManager.h
38 строк
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 <Foundation/Serialization/RttiConverter.h> #include <ToolsFoundation/Document/Document.h> #include <ToolsFoundation/Object/DocumentObjectManager.h> #include <ToolsFoundation/Object/DocumentObjectMirror.h> #include <ToolsFoundation/Object/ObjectAccessorBase.h> #include <ToolsFoundation/Serialization/DocumentObjectConverter.h> class ezTestDocumentObjectManager : public ezDocumentObjectManager { public: ezTestDocumentObjectManager(); ~ezTestDocumentObjectManager(); }; class ezTestDocument : public ezDocument { EZ_ADD_DYNAMIC_REFLECTION(ezTestDocument, ezDocument); public: ezTestDocument(ezStringView sDocumentPath, bool bUseIPCObjectMirror = false); ~ezTestDocument(); virtual void InitializeAfterLoading(bool bFirstTimeCreation) override; void ApplyNativePropertyChangesToObjectManager(ezDocumentObject* pObject); virtual ezDocumentInfo* CreateDocumentInfo() override; ezDocumentObjectMirror m_ObjectMirror; ezRttiConverterContext m_Context; private: bool m_bUseIPCObjectMirror; };