![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <PrefabScanner.h>
Public Member Functions | |
| PrefabRegistry ()=default | |
| void | Register (const PrefabBlueprint &blueprint) |
| const PrefabBlueprint * | Find (const std::string &name) const |
| std::vector< const PrefabBlueprint * > | FindByType (const std::string &type) const |
| std::vector< std::string > | GetAllPrefabNames () const |
| int | GetCount () const |
Private Attributes | |
| std::map< std::string, PrefabBlueprint > | m_blueprints |
| std::map< std::string, std::string > | m_typeToName |
Definition at line 69 of file PrefabScanner.h.
|
default |
| const PrefabBlueprint * PrefabRegistry::Find | ( | const std::string & | name | ) | const |
Definition at line 44 of file PrefabScanner.cpp.
References GetComponentTypeID_Static(), and m_blueprints.
Referenced by PrefabFactory::CreateEntityFromPrefabName(), PrefabFactory::HasPrefab(), PrefabFactory::PreloadAllPrefabs(), and BehaviorTreeDependencyScanner::ScanPrefabs().
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< const PrefabBlueprint * > PrefabRegistry::FindByType | ( | const std::string & | type | ) | const |
Definition at line 50 of file PrefabScanner.cpp.
References GetComponentTypeID_Static(), and m_blueprints.
Here is the call graph for this function:| std::vector< std::string > PrefabRegistry::GetAllPrefabNames | ( | ) | const |
Definition at line 66 of file PrefabScanner.cpp.
References GetComponentTypeID_Static(), and m_blueprints.
Referenced by PrefabFactory::PreloadAllPrefabs().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 78 of file PrefabScanner.h.
References m_blueprints.
Referenced by PrefabFactory::GetPrefabCount(), PrefabFactory::PreloadAllPrefabs(), and PrefabFactory::SetPrefabRegistry().
Here is the caller graph for this function:| void PrefabRegistry::Register | ( | const PrefabBlueprint & | blueprint | ) |
Definition at line 33 of file PrefabScanner.cpp.
References GetComponentTypeID_Static(), m_blueprints, and m_typeToName.
Here is the call graph for this function:
|
private |
Definition at line 81 of file PrefabScanner.h.
Referenced by Find(), FindByType(), GetAllPrefabNames(), GetCount(), and Register().
|
private |
Definition at line 82 of file PrefabScanner.h.
Referenced by Register().