DarkflameServer/dGame/dEntity/EntityCallbackTimer.h

20 lines
334 B
C
Raw Permalink Normal View History

#pragma once
#include <string>
#include <functional>
class EntityCallbackTimer {
public:
EntityCallbackTimer(float time, std::function<void()> callback);
~EntityCallbackTimer();
std::function<void()> GetCallback();
float GetTime();
2022-07-28 13:39:57 +00:00
void Update(float deltaTime);
private:
std::function<void()> m_Callback;
float m_Time;
};