|
VisuTwin Canvas
C++ 3D Engine — Metal Backend
|
#include <framework/components/componentSystemRegistry.h>
Public Member Functions | |
| void | add (std::unique_ptr< IComponentSystem > system) |
| template<typename ComponentType> | |
| IComponentSystem * | getByComponentType () const |
| IComponentSystem * | getByComponentTypeInfo (const std::type_info &typeInfo) const |
| IComponentSystem * | getById (const std::string &id) const |
| Public Member Functions inherited from visutwin::canvas::EventHandler | |
| template<typename... Args> | |
| EventHandler * | fire (const std::string &name, Args &&... args) |
| bool | hasEvent (const std::string &name) const |
| void | initEventHandler () |
| template<typename Callback> requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) | |
| EventHandler * | off (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandler * | off (const std::string &name="", const HandleEventCallback &callback=HandleEventCallback(), void *scope=nullptr) |
| EventHandler * | offByHandle (EventHandle *handle) |
| template<typename Callback> requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) | |
| EventHandle * | on (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandle * | on (const std::string &name, HandleEventCallback callback, void *scope=nullptr) |
| template<typename Callback> requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) | |
| EventHandle * | once (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandle * | once (const std::string &name, HandleEventCallback callback, void *scope=nullptr) |
| virtual | ~EventHandler ()=default |
Additional Inherited Members | |
| Protected Member Functions inherited from visutwin::canvas::EventHandler | |
| EventHandle * | addCallback (const std::string &name, HandleEventCallback callback, void *scope=nullptr, bool once=false) |
Definition at line 20 of file componentSystemRegistry.h.
| void visutwin::canvas::ComponentSystemRegistry::add | ( | std::unique_ptr< IComponentSystem > | system | ) |
Definition at line 12 of file componentSystemRegistry.cpp.
References visutwin::canvas::IComponentSystem::componentType(), and visutwin::canvas::IComponentSystem::id().
|
inline |
Definition at line 28 of file componentSystemRegistry.h.
|
inline |
Look up a component system by runtime type_info. Useful when the concrete Component type is only known at runtime (e.g., during clone).
Definition at line 38 of file componentSystemRegistry.h.
| IComponentSystem * visutwin::canvas::ComponentSystemRegistry::getById | ( | const std::string & | id | ) | const |
Definition at line 24 of file componentSystemRegistry.cpp.