DarkflameServer/dGame/dEntity/EntityCallbackTimer.h
2023-06-15 02:32:30 -07:00

20 lines
348 B
C++

#pragma once
#include <string>
#include <functional>
class EntityCallbackTimer {
public:
EntityCallbackTimer(const float& time, const std::function<void()>& callback);
void ExecuteCallback();
std::function<void()> GetCallback();
float GetTime();
void Update(float deltaTime);
private:
std::function<void()> m_Callback;
float m_Time;
};