Acheron
Loading...
Searching...
No Matches
acheron::ecs::SystemFunction< Func > Class Template Reference

Wrapper class for systems to support lambda and function pointers. More...

#include <system_function.hpp>

Inheritance diagram for acheron::ecs::SystemFunction< Func >:
acheron::ecs::System

Public Member Functions

 SystemFunction (Func &&f)
 System Function Wrapper.
void Update (World &world, double dt) override
 Iterates through all entities associated with system, and call it.

Additional Inherited Members

Public Attributes inherited from acheron::ecs::System
std::unordered_set< Entity > entities
 List of entities a system is matched with.

Detailed Description

template<typename Func>
class acheron::ecs::SystemFunction< Func >

Wrapper class for systems to support lambda and function pointers.

Template Parameters
FuncSystem callback

Member Function Documentation

◆ Update()

template<typename Func>
void acheron::ecs::SystemFunction< Func >::Update ( World & world,
double dt )
inlineoverridevirtual

Iterates through all entities associated with system, and call it.

Parameters
worldA reference to the World
dtDelta Time

Reimplemented from acheron::ecs::System.


The documentation for this class was generated from the following file: