#include "EntityCallbackTimer.h" EntityCallbackTimer::EntityCallbackTimer(float time, std::function callback) { m_Time = time; m_Callback = callback; } EntityCallbackTimer::~EntityCallbackTimer() { } void EntityCallbackTimer::ExecuteCallback() { m_Callback(); } std::function EntityCallbackTimer::GetCallback() { return m_Callback; } float EntityCallbackTimer::GetTime() { return m_Time; } void EntityCallbackTimer::Update(float deltaTime) { m_Time -= deltaTime; }