Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
PrefabRegistry Class Reference

#include <PrefabScanner.h>

Public Member Functions

 PrefabRegistry ()=default
 
void Register (const PrefabBlueprint &blueprint)
 
const PrefabBlueprintFind (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, PrefabBlueprintm_blueprints
 
std::map< std::string, std::string > m_typeToName
 

Detailed Description

Examples
/home/runner/work/Olympe-Engine/Olympe-Engine/Source/World.h.

Definition at line 69 of file PrefabScanner.h.

Constructor & Destructor Documentation

◆ PrefabRegistry()

PrefabRegistry::PrefabRegistry ( )
default

Member Function Documentation

◆ Find()

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:

◆ FindByType()

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:

◆ GetAllPrefabNames()

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:

◆ GetCount()

int PrefabRegistry::GetCount ( ) const
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:

◆ Register()

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:

Member Data Documentation

◆ m_blueprints

std::map<std::string, PrefabBlueprint> PrefabRegistry::m_blueprints
private

Definition at line 81 of file PrefabScanner.h.

Referenced by Find(), FindByType(), GetAllPrefabNames(), GetCount(), and Register().

◆ m_typeToName

std::map<std::string, std::string> PrefabRegistry::m_typeToName
private

Definition at line 82 of file PrefabScanner.h.

Referenced by Register().


The documentation for this class was generated from the following files: