DarkflameServer/dGame/dEntity/EntityCallbackTimer.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
373 B
C
Raw Normal View History

#pragma once
#include <string>
#include <functional>
class EntityCallbackTimer {
public:
EntityCallbackTimer(const float& time, const std::function<void()>& callback);
~EntityCallbackTimer();
2023-06-15 02:01:31 +00:00
void ExecuteCallback();
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;
};