Meta factory for creating system objects.
More...
#include <SystemFactory.hpp>
|
ankerl::unordered_dense::map< std::uint64_t, std::move_only_function< void(SystemStack &)> > | m_factory |
| Lets us construct a system class from a string representation.
|
|
Meta factory for creating system objects.
Definition at line 31 of file SystemFactory.hpp.
◆ SystemFactory()
galaxy::meta::SystemFactory::SystemFactory |
( |
| ) |
|
|
defaultnoexcept |
◆ ~SystemFactory()
galaxy::meta::SystemFactory::~SystemFactory |
( |
| ) |
|
|
defaultnoexcept |
◆ register_system()
template<valid_component System>
void galaxy::meta::SystemFactory::register_system |
( |
const std::string & | name | ) |
|
|
inline |
Registers a system definition.
- Template Parameters
-
System | Must be a class that is move constructable and assignable. |
- Parameters
-
name | Name of system class in string format. |
Definition at line 70 of file SystemFactory.hpp.
◆ create_system()
void galaxy::meta::SystemFactory::create_system |
( |
const std::string & | name, |
|
|
SystemStack & | stack ) |
Create a system using the factory.
- Parameters
-
name | Name of system class in string format. |
storage | Storage map to create the system in. |
Definition at line 14 of file SystemFactory.cpp.
◆ m_factory
ankerl::unordered_dense::map<std::uint64_t, std::move_only_function<void(SystemStack&)> > galaxy::meta::SystemFactory::m_factory |
|
private |
Lets us construct a system class from a string representation.
Definition at line 66 of file SystemFactory.hpp.
The documentation for this class was generated from the following files: