engine/include/components/custom.h
2023-05-25 18:35:32 +01:00

14 lines
259 B
C++

#ifndef ENGINE_INCLUDE_COMPONENTS_CUSTOM_H_
#define ENGINE_INCLUDE_COMPONENTS_CUSTOM_H_
#include <functional>
namespace engine {
struct CustomComponent {
std::function<void(float)> onUpdate; // void onUpdate(float ts);
};
} // namespace engine
#endif