mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-14 04:08:20 +00:00
20 lines
335 B
C
20 lines
335 B
C
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
#include <functional>
|
||
|
|
||
|
class EntityCallbackTimer {
|
||
|
public:
|
||
|
EntityCallbackTimer(float time, std::function<void()> callback);
|
||
|
~EntityCallbackTimer();
|
||
|
|
||
|
std::function<void()> GetCallback();
|
||
|
float GetTime();
|
||
|
|
||
|
void Update(float deltaTime);
|
||
|
|
||
|
private:
|
||
|
std::function<void()> m_Callback;
|
||
|
float m_Time;
|
||
|
};
|