![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <ParameterResolver.h>
Public Member Functions | |
| ParameterResolver () | |
| ~ParameterResolver () | |
| std::vector< ResolvedComponentInstance > | Resolve (const PrefabBlueprint &prefab, const LevelInstanceParameters &instanceParams) |
Private Member Functions | |
| ResolvedComponentInstance | ResolveComponent (const ComponentDefinition &componentDef, const LevelInstanceParameters &instanceParams) |
| void | ApplyPropertyOverride (ResolvedComponentInstance &component, const std::string &propertyName, const ComponentParameter &propertyValue) |
| std::map< std::string, ComponentParameter > | ExtractComponentParameters (const std::string &componentType, const LevelInstanceParameters &instanceParams) |
| ComponentParameter | ConvertLevelProperty (const std::string &propertyName, const ComponentParameter &levelProperty, ComponentParameter::Type expectedType) |
| void | ValidateResolvedComponent (ResolvedComponentInstance &component) |
Definition at line 75 of file ParameterResolver.h.
| ParameterResolver::ParameterResolver | ( | ) |
Definition at line 17 of file ParameterResolver.cpp.
References SYSTEM_LOG.
| ParameterResolver::~ParameterResolver | ( | ) |
Definition at line 22 of file ParameterResolver.cpp.
|
private |
Definition at line 123 of file ParameterResolver.cpp.
References ConvertLevelProperty(), GetComponentTypeID_Static(), ParameterSchemaRegistry::GetInstance(), and SYSTEM_LOG.
Referenced by ResolveComponent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 222 of file ParameterResolver.cpp.
References ComponentParameter::Bool, ComponentParameter::Color, ComponentParameter::EntityRef, ComponentParameter::Float, ComponentParameter::FromBool(), ComponentParameter::FromColor(), ComponentParameter::FromEntityRef(), ComponentParameter::FromFloat(), ComponentParameter::FromInt(), ComponentParameter::FromString(), ComponentParameter::FromVector3(), GetComponentTypeID_Static(), ComponentParameter::Int, ComponentParameter::String, SYSTEM_LOG, ComponentParameter::Vector2, and ComponentParameter::Vector3.
Referenced by ApplyPropertyOverride().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 157 of file ParameterResolver.cpp.
References GetComponentTypeID_Static(), ParameterSchemaRegistry::GetInstance(), and SYSTEM_LOG.
Referenced by ResolveComponent().
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< ResolvedComponentInstance > ParameterResolver::Resolve | ( | const PrefabBlueprint & | prefab, |
| const LevelInstanceParameters & | instanceParams | ||
| ) |
Definition at line 26 of file ParameterResolver.cpp.
References GetComponentTypeID_Static(), ResolveComponent(), SYSTEM_LOG, and ValidateResolvedComponent().
Referenced by PrefabFactory::CreateEntityWithOverrides().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 66 of file ParameterResolver.cpp.
References ApplyPropertyOverride(), ExtractComponentParameters(), ComponentParameter::FromFloat(), GetComponentTypeID_Static(), and SYSTEM_LOG.
Referenced by Resolve().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 277 of file ParameterResolver.cpp.
References GetComponentTypeID_Static(), ParameterSchemaRegistry::GetInstance(), SYSTEM_LOG, and ComponentParameter::Unknown.
Referenced by Resolve().
Here is the call graph for this function:
Here is the caller graph for this function: