mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-05 14:58:27 +00:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
19
dGame/dEntity/EntityCallbackTimer.h
Normal file
19
dGame/dEntity/EntityCallbackTimer.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#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;
|
||||
};
|
Reference in New Issue
Block a user