mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-05 14:58:27 +00:00
change timers to not use ptrs (#1399)
add comments as to why logic may seem confusing.
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
|
||||
class EntityCallbackTimer {
|
||||
public:
|
||||
EntityCallbackTimer(float time, std::function<void()> callback);
|
||||
~EntityCallbackTimer();
|
||||
EntityCallbackTimer(const float time, const std::function<void()> callback);
|
||||
|
||||
std::function<void()> GetCallback() const { return m_Callback; };
|
||||
|
||||
std::function<void()> GetCallback();
|
||||
float GetTime();
|
||||
float GetTime() const { return m_Time; };
|
||||
|
||||
void Update(float deltaTime);
|
||||
|
||||
|
Reference in New Issue
Block a user