settle on content store for now

This commit is contained in:
2024-04-28 15:10:48 +02:00
parent b657802e8d
commit ddadc9bdbc
3 changed files with 19 additions and 3 deletions

View File

@ -9,11 +9,21 @@
#include <solanaceae/file/file2.hpp>
enum class Content1 : uint32_t {};
using ContentRegistry = entt::basic_registry<Content1>;
enum class Content : uint32_t {};
using ContentRegistry = entt::basic_registry<Content>;
using ContentHandle = entt::basic_handle<ContentRegistry>;
namespace Content::Components {
struct ContentStore {
static constexpr const char* version {"1"};
ContentRegistry _reg;
ContentRegistry& registry(void);
ContentHandle objectHandle(const Content e);
};
namespace Content1::Components {
// TODO: design it as a tree?