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