engine/include/components/custom.h

15 lines
318 B
C
Raw Permalink Normal View History

2023-05-25 17:35:32 +00:00
#ifndef ENGINE_INCLUDE_COMPONENTS_CUSTOM_H_
#define ENGINE_INCLUDE_COMPONENTS_CUSTOM_H_
#include <functional>
namespace engine {
struct CustomComponent {
2023-07-04 16:08:28 +00:00
std::function<void(void)> onInit; // void onInit(void);
2023-05-25 17:35:32 +00:00
std::function<void(float)> onUpdate; // void onUpdate(float ts);
};
} // namespace engine
#endif