|
NcEngine
|
Component that runs a custom callable during each logic phase. More...
#include <FrameLogic.h>
Public Member Functions | |
| template<FrameLogicCallable Func> | |
| FrameLogic (Entity entity, Func &&func) | |
| template<FrameLogicCallable Func> | |
| void | SetFunction (Func &&func) |
| Set a new callable. | |
| void | Run (ecs::Ecs world, float dt) |
Public Member Functions inherited from nc::ComponentBase | |
| ComponentBase (Entity entity) noexcept | |
| ComponentBase (const ComponentBase &)=delete | |
| ComponentBase (ComponentBase &&)=default | |
| ComponentBase & | operator= (const ComponentBase &)=delete |
| ComponentBase & | operator= (ComponentBase &&)=default |
| Entity | ParentEntity () const noexcept |
Component that runs a custom callable during each logic phase.