DarkflameServer/dGame/dEntity/EntityTimer.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

19 lines
305 B
C++

#include "EntityTimer.h"
EntityTimer::EntityTimer(const std::string& name, const float time) {
m_Name = name;
m_Time = time;
}
std::string EntityTimer::GetName() {
return m_Name;
}
float EntityTimer::GetTime() {
return m_Time;
}
void EntityTimer::Update(float deltaTime) {
m_Time -= deltaTime;
}