About to add evet
This commit is contained in:
		
							
								
								
									
										20
									
								
								src/dawn/event/Event.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								src/dawn/event/Event.hpp
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
// Copyright (c) 2023 Dominic Masters
 | 
			
		||||
// 
 | 
			
		||||
// This software is released under the MIT License.
 | 
			
		||||
// https://opensource.org/licenses/MIT
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
#include "dawnlibs.hpp"
 | 
			
		||||
 | 
			
		||||
namespace Dawn {
 | 
			
		||||
  template<typename T>
 | 
			
		||||
  class Event {
 | 
			
		||||
    private:
 | 
			
		||||
 | 
			
		||||
    public:
 | 
			
		||||
      Event() {}
 | 
			
		||||
      virtual ~Event() {}
 | 
			
		||||
 | 
			
		||||
      virtual void operator()(T &t) = 0;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user