Started development of BECS - the basic ECS system for the engine
This commit is contained in:
		
							
								
								
									
										7
									
								
								BarinkEngine/Include/ECS/Component.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								BarinkEngine/Include/ECS/Component.h
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,7 @@
 | 
			
		||||
#pragma once
 | 
			
		||||
namespace BECS {
 | 
			
		||||
 | 
			
		||||
	struct Component {
 | 
			
		||||
 | 
			
		||||
	};
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										13
									
								
								BarinkEngine/Include/ECS/Entity.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								BarinkEngine/Include/ECS/Entity.h
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,13 @@
 | 
			
		||||
#pragma once
 | 
			
		||||
#include <vector>
 | 
			
		||||
#include "Component.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
namespace BECS {
 | 
			
		||||
 | 
			
		||||
	typedef unsigned long int Entity;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										7
									
								
								BarinkEngine/Include/ECS/System.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								BarinkEngine/Include/ECS/System.h
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,7 @@
 | 
			
		||||
#pragma once
 | 
			
		||||
namespace BECS {
 | 
			
		||||
 | 
			
		||||
	struct System {
 | 
			
		||||
 | 
			
		||||
	};
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										17
									
								
								BarinkEngine/Include/ECS/World.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								BarinkEngine/Include/ECS/World.h
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,17 @@
 | 
			
		||||
#pragma once
 | 
			
		||||
#include "System.h"
 | 
			
		||||
#include <vector>
 | 
			
		||||
#include "Component.h"
 | 
			
		||||
#include "Entity.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
namespace BECS {
 | 
			
		||||
	struct World {
 | 
			
		||||
	
 | 
			
		||||
	private:
 | 
			
		||||
		std::vector<System> systems;
 | 
			
		||||
		std::vector<Component> components;
 | 
			
		||||
		std::vector<Entity> entities;
 | 
			
		||||
 | 
			
		||||
	};
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user