DarkflameServer/dGame/dEntity/EntityTimer.cpp

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

19 lines
305 B
C++
Raw Permalink Normal View History

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