mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-26 18:11:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			377 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			377 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <string>
 | |
| #include <functional>
 | |
| 
 | |
| class EntityCallbackTimer {
 | |
| public:
 | |
| 	EntityCallbackTimer(const float time, const std::function<void()> callback);
 | |
| 	
 | |
| 	std::function<void()> GetCallback() const { return m_Callback; };
 | |
| 
 | |
| 	float GetTime() const { return m_Time; };
 | |
| 
 | |
| 	void Update(float deltaTime);
 | |
| 
 | |
| private:
 | |
| 	std::function<void()> m_Callback;
 | |
| 	float m_Time;
 | |
| };
 | 
