DarkflameServer/dGame/dEntity/EntityCallbackTimer.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
252 B
C++
Raw Permalink Normal View History

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