mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-07 11:14:11 +00:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
22
dGame/dEntity/EntityTimer.cpp
Normal file
22
dGame/dEntity/EntityTimer.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "EntityTimer.h"
|
||||
|
||||
EntityTimer::EntityTimer(std::string name, float time) {
|
||||
m_Name = name;
|
||||
m_Time = time;
|
||||
}
|
||||
|
||||
EntityTimer::~EntityTimer() {
|
||||
|
||||
}
|
||||
|
||||
std::string EntityTimer::GetName() {
|
||||
return m_Name;
|
||||
}
|
||||
|
||||
float EntityTimer::GetTime() {
|
||||
return m_Time;
|
||||
}
|
||||
|
||||
void EntityTimer::Update(float deltaTime) {
|
||||
m_Time -= deltaTime;
|
||||
}
|
Reference in New Issue
Block a user