mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 14:37:25 +00:00
14c20fbd62
add comments as to why logic may seem confusing.
19 lines
305 B
C++
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;
|
|
}
|