engine/include/components/custom.h

12 lines
239 B
C
Raw Permalink Normal View History

2024-03-31 10:11:22 +00:00
#pragma once
2023-05-25 17:35:32 +00:00
#include <functional>
namespace engine {
struct CustomComponent {
2024-03-31 10:11:22 +00:00
std::function<void(void)> onInit; // void onInit(void);
std::function<void(float)> onUpdate; // void onUpdate(float ts);
2023-05-25 17:35:32 +00:00
};
2024-03-31 10:11:22 +00:00
} // namespace engine