switch to unique_ptrs for callback timers

This commit is contained in:
EmosewaMC
2023-06-14 23:16:31 -07:00
parent 83065dfb6f
commit 451f7e76d7
6 changed files with 21 additions and 35 deletions

View File

@@ -5,7 +5,7 @@
class EntityCallbackTimer {
public:
EntityCallbackTimer(float time, std::function<void()> callback);
EntityCallbackTimer(const float& time, const std::function<void()>& callback);
~EntityCallbackTimer();
void ExecuteCallback();