22 #ifndef EZGL_COMPONENT_HPP 23 #define EZGL_COMPONENT_HPP 64 static_cast<T*>(
this)->init(
self, main);
75 static_cast<T*>(
this)->update(
self, main);
Object factory and Main game executor.
Definition: Object.hpp:46
The base class to inherit from for all components.
Definition: Component.hpp:43
void IUpdate(Object &self, Object &main) override
Initialize all components.
Definition: Component.hpp:73
void IInit(Object &self, Object &main) override
Initialize all components.
Definition: Component.hpp:62
Allows Component to utilize dynamic polymorphism.
Definition: IComponent.hpp:41
Allows Component to utilize dynamic polymorphism.
static ComponentPtr Create()
Automatically generated per-class component factory.
Definition: Component.hpp:51
Component enlister and smart pointer factory.
std::unique_ptr< class IComponent > ComponentPtr
Component smart pointer type.
Definition: ComponentFactory.hpp:53