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

26 lines
411 B
C++

#pragma once
#include <string>
class EntityTimer {
public:
EntityTimer(const std::string& name, const float time);
bool operator==(const EntityTimer& other) const {
return m_Name == other.m_Name;
}
bool operator==(const std::string& other) const {
return m_Name == other;
}
std::string GetName();
float GetTime();
void Update(float deltaTime);
private:
std::string m_Name;
float m_Time;
};