![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Singleton mapping TaskNodeType -> vector of ParameterDescriptor. More...
#include <ParameterEditorRegistry.h>
Public Member Functions | |
| void | RegisterNodeType (TaskNodeType nodeType, const std::vector< ParameterDescriptor > &descriptors) |
| Registers a set of parameter descriptors for a node type. | |
| const std::vector< ParameterDescriptor > & | GetNodeParameters (TaskNodeType nodeType) const |
| Returns the parameter descriptors for the given node type. | |
| const ParameterDescriptor * | GetParameterDescriptor (TaskNodeType nodeType, const std::string ¶mName) const |
| Returns the descriptor for a specific parameter of a node type. | |
Static Public Member Functions | |
| static ParameterEditorRegistry & | Get () |
| Returns the singleton instance. | |
Private Member Functions | |
| ParameterEditorRegistry () | |
| void | InitializeBuiltInParameters () |
Private Attributes | |
| std::unordered_map< uint8_t, std::vector< ParameterDescriptor > > | m_params |
Static Private Attributes | |
| static const std::vector< ParameterDescriptor > | s_empty |
| Returned by GetNodeParameters when a type has no descriptors. | |
Singleton mapping TaskNodeType -> vector of ParameterDescriptor.
Definition at line 51 of file ParameterEditorRegistry.h.
|
private |
Definition at line 30 of file ParameterEditorRegistry.cpp.
References InitializeBuiltInParameters().
Here is the call graph for this function:
|
static |
Returns the singleton instance.
Calls InitializeBuiltInParameters() on first access.
Definition at line 24 of file ParameterEditorRegistry.cpp.
References GetComponentTypeID_Static().
Here is the call graph for this function:| const std::vector< ParameterDescriptor > & Olympe::ParameterEditorRegistry::GetNodeParameters | ( | TaskNodeType | nodeType | ) | const |
Returns the parameter descriptors for the given node type.
Returns an empty vector if no descriptors have been registered for nodeType.
| nodeType | The node type. |
Definition at line 50 of file ParameterEditorRegistry.cpp.
References GetComponentTypeID_Static(), m_params, and s_empty.
Referenced by GetParameterDescriptor().
Here is the call graph for this function:
Here is the caller graph for this function:| const ParameterDescriptor * Olympe::ParameterEditorRegistry::GetParameterDescriptor | ( | TaskNodeType | nodeType, |
| const std::string & | paramName | ||
| ) | const |
Returns the descriptor for a specific parameter of a node type.
| nodeType | The node type. |
| paramName | Parameter name. |
Definition at line 57 of file ParameterEditorRegistry.cpp.
References GetComponentTypeID_Static(), and GetNodeParameters().
Here is the call graph for this function:
|
private |
Definition at line 74 of file ParameterEditorRegistry.cpp.
References Olympe::AtomicTask, Olympe::AtomicTaskID, Olympe::ParameterDescriptor::bindingType, Olympe::Branch, Olympe::ComparisonOp, Olympe::ConditionID, Olympe::Delay, Olympe::ParameterDescriptor::description, Olympe::Float, Olympe::ForEach, Olympe::GetBBValue, GetComponentTypeID_Static(), Olympe::List, Olympe::Literal, Olympe::LocalVariable, Olympe::MathOp, Olympe::MathOperator, Olympe::ParameterDescriptor::name, RegisterNodeType(), Olympe::ParameterDescriptor::required, Olympe::SetBBValue, Olympe::SubGraph, Olympe::SubGraphPath, Olympe::Switch, and Olympe::While.
Referenced by ParameterEditorRegistry().
Here is the call graph for this function:
Here is the caller graph for this function:| void Olympe::ParameterEditorRegistry::RegisterNodeType | ( | TaskNodeType | nodeType, |
| const std::vector< ParameterDescriptor > & | descriptors | ||
| ) |
Registers a set of parameter descriptors for a node type.
Overwrites any previously registered descriptors for nodeType.
| nodeType | The node type. |
| descriptors | Ordered list of parameter descriptors. |
Definition at line 39 of file ParameterEditorRegistry.cpp.
References GetComponentTypeID_Static(), and m_params.
Referenced by InitializeBuiltInParameters().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 98 of file ParameterEditorRegistry.h.
Referenced by GetNodeParameters(), and RegisterNodeType().
|
staticprivate |
Returned by GetNodeParameters when a type has no descriptors.
Definition at line 101 of file ParameterEditorRegistry.h.
Referenced by GetNodeParameters().