![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
EnumCatalogManager - Singleton manager for enum catalogs Loads and manages dynamic type definitions for the node editor. More...
#include <EnumCatalogManager.h>
Public Member Functions | |
| void | Initialize () |
| void | Shutdown () |
| bool | LoadCatalogs (const std::string &catalogsPath) |
| bool | LoadCatalog (const std::string &filepath) |
| bool | ReloadCatalogs () |
| const EnumCatalog * | GetActionCatalog () const |
| const EnumCatalog * | GetConditionCatalog () const |
| const EnumCatalog * | GetDecoratorCatalog () const |
| std::vector< std::string > | GetActionTypes () const |
| std::vector< std::string > | GetConditionTypes () const |
| std::vector< std::string > | GetDecoratorTypes () const |
| const CatalogType * | FindActionType (const std::string &id) const |
| const CatalogType * | FindConditionType (const std::string &id) const |
| const CatalogType * | FindDecoratorType (const std::string &id) const |
| bool | IsValidActionType (const std::string &id) const |
| bool | IsValidConditionType (const std::string &id) const |
| bool | IsValidDecoratorType (const std::string &id) const |
| bool | IsInitialized () const |
| std::string | GetLastError () const |
| std::string | GetCatalogsPath () const |
Static Public Member Functions | |
| static EnumCatalogManager & | Instance () |
| static EnumCatalogManager & | Get () |
Private Member Functions | |
| EnumCatalogManager () | |
| ~EnumCatalogManager () | |
| EnumCatalogManager (const EnumCatalogManager &)=delete | |
| EnumCatalogManager & | operator= (const EnumCatalogManager &)=delete |
| bool | ParseCatalogJson (const nlohmann::json &j, EnumCatalog &catalog) |
| bool | ParseCatalogType (const nlohmann::json &j, CatalogType &type) |
| bool | ParseCatalogParameter (const nlohmann::json &j, CatalogParameter ¶m) |
| bool | ValidateCatalog (const EnumCatalog &catalog, std::string &errorMsg) |
Private Attributes | |
| bool | m_Initialized |
| std::string | m_CatalogsPath |
| std::string | m_LastError |
| std::unique_ptr< EnumCatalog > | m_ActionCatalog |
| std::unique_ptr< EnumCatalog > | m_ConditionCatalog |
| std::unique_ptr< EnumCatalog > | m_DecoratorCatalog |
EnumCatalogManager - Singleton manager for enum catalogs Loads and manages dynamic type definitions for the node editor.
Definition at line 88 of file EnumCatalogManager.h.
|
private |
Definition at line 21 of file EnumCatalogManager.cpp.
|
private |
Definition at line 27 of file EnumCatalogManager.cpp.
References Shutdown().
Here is the call graph for this function:
|
privatedelete |
| const CatalogType * Olympe::EnumCatalogManager::FindActionType | ( | const std::string & | id | ) | const |
Definition at line 304 of file EnumCatalogManager.cpp.
References m_ActionCatalog.
Referenced by IsValidActionType(), Olympe::NodeGraphPanel::RenderNodeEditModal(), Olympe::AssetBrowser::RenderNodePalette(), and Olympe::BlueprintValidator::ValidateNodeParameters().
Here is the caller graph for this function:| const CatalogType * Olympe::EnumCatalogManager::FindConditionType | ( | const std::string & | id | ) | const |
Definition at line 311 of file EnumCatalogManager.cpp.
References m_ConditionCatalog.
Referenced by IsValidConditionType(), Olympe::NodeGraphPanel::RenderNodeEditModal(), Olympe::AssetBrowser::RenderNodePalette(), and Olympe::BlueprintValidator::ValidateNodeParameters().
Here is the caller graph for this function:| const CatalogType * Olympe::EnumCatalogManager::FindDecoratorType | ( | const std::string & | id | ) | const |
Definition at line 318 of file EnumCatalogManager.cpp.
References m_DecoratorCatalog.
Referenced by IsValidDecoratorType(), Olympe::AssetBrowser::RenderNodePalette(), and Olympe::BlueprintValidator::ValidateNodeParameters().
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 93 of file EnumCatalogManager.h.
References Instance().
Referenced by Olympe::BlueprintEditor::Initialize(), Olympe::NodeGraphPanel::RenderContextMenu(), Olympe::NodeGraphPanel::RenderGraph(), Olympe::NodeGraphPanel::RenderNodeEditModal(), Olympe::AssetBrowser::RenderNodePalette(), Olympe::BlueprintEditor::Shutdown(), Olympe::BlueprintValidator::ValidateNodeParameters(), and Olympe::BlueprintValidator::ValidateNodeType().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 105 of file EnumCatalogManager.h.
References m_ActionCatalog.
| std::vector< std::string > Olympe::EnumCatalogManager::GetActionTypes | ( | ) | const |
Definition at line 282 of file EnumCatalogManager.cpp.
References m_ActionCatalog.
Referenced by Olympe::NodeGraphPanel::RenderContextMenu(), Olympe::NodeGraphPanel::RenderNodeEditModal(), and Olympe::AssetBrowser::RenderNodePalette().
Here is the caller graph for this function:
|
inline |
Definition at line 127 of file EnumCatalogManager.h.
References m_CatalogsPath.
|
inline |
Definition at line 106 of file EnumCatalogManager.h.
References m_ConditionCatalog.
| std::vector< std::string > Olympe::EnumCatalogManager::GetConditionTypes | ( | ) | const |
Definition at line 289 of file EnumCatalogManager.cpp.
References m_ConditionCatalog.
Referenced by Olympe::NodeGraphPanel::RenderContextMenu(), Olympe::NodeGraphPanel::RenderNodeEditModal(), and Olympe::AssetBrowser::RenderNodePalette().
Here is the caller graph for this function:
|
inline |
Definition at line 107 of file EnumCatalogManager.h.
References m_DecoratorCatalog.
| std::vector< std::string > Olympe::EnumCatalogManager::GetDecoratorTypes | ( | ) | const |
Definition at line 296 of file EnumCatalogManager.cpp.
References m_DecoratorCatalog.
Referenced by Olympe::NodeGraphPanel::RenderContextMenu(), Olympe::NodeGraphPanel::RenderNodeEditModal(), and Olympe::AssetBrowser::RenderNodePalette().
Here is the caller graph for this function:
|
inline |
Definition at line 126 of file EnumCatalogManager.h.
References m_LastError.
| void Olympe::EnumCatalogManager::Initialize | ( | ) |
Definition at line 32 of file EnumCatalogManager.cpp.
References LoadCatalogs(), m_CatalogsPath, m_Initialized, and m_LastError.
Referenced by Olympe::BlueprintEditor::Initialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 15 of file EnumCatalogManager.cpp.
References GetComponentTypeID_Static().
Referenced by Get().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 125 of file EnumCatalogManager.h.
References m_Initialized.
Definition at line 326 of file EnumCatalogManager.cpp.
References FindActionType().
Here is the call graph for this function:Definition at line 331 of file EnumCatalogManager.cpp.
References FindConditionType().
Here is the call graph for this function:Definition at line 336 of file EnumCatalogManager.cpp.
References FindDecoratorType().
Here is the call graph for this function:Definition at line 93 of file EnumCatalogManager.cpp.
References GetComponentTypeID_Static(), m_ActionCatalog, m_ConditionCatalog, m_DecoratorCatalog, m_LastError, ParseCatalogJson(), and ValidateCatalog().
Referenced by LoadCatalogs().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 64 of file EnumCatalogManager.cpp.
References GetComponentTypeID_Static(), LoadCatalog(), m_CatalogsPath, and m_LastError.
Referenced by Initialize(), and ReloadCatalogs().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatedelete |
|
private |
Definition at line 172 of file EnumCatalogManager.cpp.
References JsonHelper::ForEachInArray(), GetComponentTypeID_Static(), JsonHelper::GetString(), JsonHelper::IsArray(), m_LastError, and ParseCatalogType().
Referenced by LoadCatalog().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 228 of file EnumCatalogManager.cpp.
References JsonHelper::GetBool(), GetComponentTypeID_Static(), and JsonHelper::GetString().
Referenced by ParseCatalogType().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 204 of file EnumCatalogManager.cpp.
References Olympe::CatalogType::category, Olympe::CatalogType::description, JsonHelper::ForEachInArray(), GetComponentTypeID_Static(), JsonHelper::GetString(), Olympe::CatalogType::id, JsonHelper::IsArray(), Olympe::CatalogType::name, Olympe::CatalogType::parameters, ParseCatalogParameter(), and Olympe::CatalogType::tooltip.
Referenced by ParseCatalogJson().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Olympe::EnumCatalogManager::ReloadCatalogs | ( | ) |
Definition at line 159 of file EnumCatalogManager.cpp.
References LoadCatalogs(), m_ActionCatalog, m_CatalogsPath, m_ConditionCatalog, and m_DecoratorCatalog.
Here is the call graph for this function:| void Olympe::EnumCatalogManager::Shutdown | ( | ) |
Definition at line 50 of file EnumCatalogManager.cpp.
References m_ActionCatalog, m_ConditionCatalog, m_DecoratorCatalog, and m_Initialized.
Referenced by Olympe::BlueprintEditor::Shutdown(), and ~EnumCatalogManager().
Here is the caller graph for this function:
|
private |
Definition at line 249 of file EnumCatalogManager.cpp.
References GetComponentTypeID_Static().
Referenced by LoadCatalog().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 152 of file EnumCatalogManager.h.
Referenced by FindActionType(), GetActionCatalog(), GetActionTypes(), LoadCatalog(), ReloadCatalogs(), and Shutdown().
|
private |
Definition at line 148 of file EnumCatalogManager.h.
Referenced by GetCatalogsPath(), Initialize(), LoadCatalogs(), and ReloadCatalogs().
|
private |
Definition at line 153 of file EnumCatalogManager.h.
Referenced by FindConditionType(), GetConditionCatalog(), GetConditionTypes(), LoadCatalog(), ReloadCatalogs(), and Shutdown().
|
private |
Definition at line 154 of file EnumCatalogManager.h.
Referenced by FindDecoratorType(), GetDecoratorCatalog(), GetDecoratorTypes(), LoadCatalog(), ReloadCatalogs(), and Shutdown().
|
private |
Definition at line 147 of file EnumCatalogManager.h.
Referenced by Initialize(), IsInitialized(), and Shutdown().
|
private |
Definition at line 149 of file EnumCatalogManager.h.
Referenced by GetLastError(), Initialize(), LoadCatalog(), LoadCatalogs(), and ParseCatalogJson().