2022-11-11 00:07:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-12-04 06:32:16 +00:00
|
|
|
#include <entt/signal/fwd.hpp>
|
2022-11-11 00:07:05 +00:00
|
|
|
#include <entt/entt.hpp>
|
|
|
|
|
2022-12-04 06:32:16 +00:00
|
|
|
#include <rttr/rttr_enable.h>
|
|
|
|
|
2022-11-11 00:07:05 +00:00
|
|
|
namespace simpleengine::ecs {
|
|
|
|
class Entity;
|
|
|
|
|
|
|
|
class Registry {
|
2022-12-04 06:32:16 +00:00
|
|
|
RTTR_ENABLE()
|
|
|
|
|
2022-11-11 00:07:05 +00:00
|
|
|
entt::registry inner;
|
|
|
|
//entt::dispatcher dispatcher;
|
|
|
|
public:
|
|
|
|
Registry();
|
|
|
|
|
|
|
|
entt::registry& get_inner();
|
|
|
|
Entity create_entity();
|
|
|
|
};
|
|
|
|
|
|
|
|
/* struct NewEntityEvent {
|
|
|
|
Entity& entity;
|
|
|
|
}; */
|
|
|
|
}
|