DarkflameServer/dGame/dEntity/EntityCallbackTimer.cpp
David Markowitz 14c20fbd62
change timers to not use ptrs (#1399)
add comments as to why logic may seem confusing.
2024-01-06 03:45:23 -06:00

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;
}