provide forward decl file for lighter inclusion

This commit is contained in:
Green Sky 2024-07-20 23:15:14 +02:00
parent c2bf065a0a
commit 4605d64df2
No known key found for this signature in database
2 changed files with 16 additions and 11 deletions

View File

@ -0,0 +1,14 @@
#pragma once
#include <entt/entity/fwd.hpp>
// internal id
enum class Object : uint32_t {};
using ObjectRegistry = entt::basic_registry<Object>;
using ObjectHandle = entt::basic_handle<ObjectRegistry>;
// fwd
struct StorageBackendI;
struct ObjectStore2;
struct File2I;

View File

@ -3,20 +3,11 @@
#include <solanaceae/util/event_provider.hpp> #include <solanaceae/util/event_provider.hpp>
#include <solanaceae/util/span.hpp> #include <solanaceae/util/span.hpp>
#include "./fwd.hpp"
#include <entt/entity/registry.hpp> #include <entt/entity/registry.hpp>
#include <entt/entity/handle.hpp> #include <entt/entity/handle.hpp>
#include <cstdint>
// internal id
enum class Object : uint32_t {};
using ObjectRegistry = entt::basic_registry<Object>;
using ObjectHandle = entt::basic_handle<ObjectRegistry>;
// fwd
struct ObjectStore2;
struct File2I;
struct StorageBackendI { struct StorageBackendI {
// OR or OS ? // OR or OS ?
ObjectStore2& _os; ObjectStore2& _os;