mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-09 09:48:20 +00:00
14c20fbd62
add comments as to why logic may seem confusing.
11 lines
252 B
C++
11 lines
252 B
C++
#include "EntityCallbackTimer.h"
|
|
|
|
EntityCallbackTimer::EntityCallbackTimer(const float time, const std::function<void()> callback) {
|
|
m_Time = time;
|
|
m_Callback = callback;
|
|
}
|
|
|
|
void EntityCallbackTimer::Update(float deltaTime) {
|
|
m_Time -= deltaTime;
|
|
}
|