mirror of
https://github.com/Squareville/TestEventServer.git
synced 2026-01-07 00:49:40 -06:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
22
dGame/dEntity/EntityCallbackTimer.cpp
Normal file
22
dGame/dEntity/EntityCallbackTimer.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "EntityCallbackTimer.h"
|
||||
|
||||
EntityCallbackTimer::EntityCallbackTimer(float time, std::function<void()> callback) {
|
||||
m_Time = time;
|
||||
m_Callback = callback;
|
||||
}
|
||||
|
||||
EntityCallbackTimer::~EntityCallbackTimer() {
|
||||
|
||||
}
|
||||
|
||||
std::function<void()> EntityCallbackTimer::GetCallback() {
|
||||
return m_Callback;
|
||||
}
|
||||
|
||||
float EntityCallbackTimer::GetTime() {
|
||||
return m_Time;
|
||||
}
|
||||
|
||||
void EntityCallbackTimer::Update(float deltaTime) {
|
||||
m_Time -= deltaTime;
|
||||
}
|
||||
Reference in New Issue
Block a user