mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-04 09:44:10 +00:00
change timers to not use ptrs (#1399)
add comments as to why logic may seem confusing.
This commit is contained in:
@@ -4,8 +4,15 @@
|
||||
|
||||
class EntityTimer {
|
||||
public:
|
||||
EntityTimer(std::string name, float time);
|
||||
~EntityTimer();
|
||||
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();
|
||||
|
Reference in New Issue
Block a user