/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Tools/Libs/ToolsFoundation/Reflection/PhantomRtti.h
30 строк
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/Reflection/Reflection.h> #include <ToolsFoundation/Reflection/ReflectedType.h> class ezPhantomRTTI : public ezRTTI { friend class ezPhantomRttiManager; public: ~ezPhantomRTTI(); private: ezPhantomRTTI(ezStringView sName, const ezRTTI* pParentType, ezUInt32 uiTypeSize, ezUInt32 uiTypeVersion, ezUInt8 uiVariantType, ezBitflags<ezTypeFlags> flags, ezStringView sPluginName); void SetProperties(ezDynamicArray<ezReflectedPropertyDescriptor>& properties); void SetFunctions(ezDynamicArray<ezReflectedFunctionDescriptor>& functions); void SetAttributes(ezDynamicArray<const ezPropertyAttribute*>& attributes); bool IsEqualToDescriptor(const ezReflectedTypeDescriptor& desc); void UpdateType(ezReflectedTypeDescriptor& desc); private: ezString m_sTypeNameStorage; ezString m_sPluginNameStorage; ezDynamicArray<ezAbstractProperty*> m_PropertiesStorage; ezDynamicArray<ezAbstractFunctionProperty*> m_FunctionsStorage; ezDynamicArray<const ezPropertyAttribute*> m_AttributesStorage; };