/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/ProcGen/EditorPluginProcGen/Actions/ProcGenActions.h
42 строки
961 B
Ingrater
Format everything using clang-format (#267)
22 июл 2020, 21:23
Не верифицирован
22 июл 2020, 21:23
878ce7e
Код
Авторство
О чём код?
#pragma once #include <EditorPluginProcGen/EditorPluginProcGenDLL.h> #include <GuiFoundation/Action/BaseActions.h> #include <GuiFoundation/GuiFoundationDLL.h> class ezPreferences; class EZ_EDITORPLUGINPROCGEN_DLL ezProcGenActions { public: static void RegisterActions(); static void UnregisterActions(); static void MapMenuActions(); static ezActionDescriptorHandle s_hCategory; static ezActionDescriptorHandle s_hDumpAST; static ezActionDescriptorHandle s_hDumpDisassembly; }; class EZ_EDITORPLUGINPROCGEN_DLL ezProcGenAction : public ezButtonAction { EZ_ADD_DYNAMIC_REFLECTION(ezProcGenAction, ezButtonAction); public: enum class ActionType { DumpAST, DumpDisassembly, }; ezProcGenAction(const ezActionContext& context, const char* szName, ActionType type); ~ezProcGenAction(); virtual void Execute(const ezVariant& value) override; private: void OnPreferenceChange(ezPreferences* pref); ActionType m_Type; };