Started development of BECS - the basic ECS system for the engine
parent
3639f967e1
commit
ab5599f1fc
|
@ -0,0 +1,7 @@
|
|||
#pragma once
|
||||
namespace BECS {
|
||||
|
||||
struct Component {
|
||||
|
||||
};
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
#pragma once
|
||||
#include <vector>
|
||||
#include "Component.h"
|
||||
|
||||
|
||||
namespace BECS {
|
||||
|
||||
typedef unsigned long int Entity;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
#pragma once
|
||||
namespace BECS {
|
||||
|
||||
struct System {
|
||||
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue