mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-26 18:11:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			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;
 | |
| };
 | 
