|
NcEngine
|
Optional base class for components. More...
#include <Component.h>
Public Member Functions | |
| ComponentBase (Entity entity) noexcept | |
| ComponentBase (const ComponentBase &)=delete | |
| ComponentBase (ComponentBase &&)=default | |
| ComponentBase & | operator= (const ComponentBase &)=delete |
| ComponentBase & | operator= (ComponentBase &&)=default |
| Entity | ParentEntity () const noexcept |
Optional base class for components.
This is the conventional interface used by engine components for providing access to their parent Entity. Note that Registry::GetParent() can find this value for any component, so types only need to derive from this if they want faster Entity retrieval.