From 18d2888e3452074245375f329d90520ac250b595 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sat, 14 Dec 2024 15:29:24 +0100 Subject: [PATCH] add remove have --- src/solanaceae/object_store/meta_components_file.hpp | 7 +++++-- src/solanaceae/object_store/meta_components_file_id.inl | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/solanaceae/object_store/meta_components_file.hpp b/src/solanaceae/object_store/meta_components_file.hpp index 308dce2..79114c1 100644 --- a/src/solanaceae/object_store/meta_components_file.hpp +++ b/src/solanaceae/object_store/meta_components_file.hpp @@ -4,9 +4,14 @@ #include +#include + #include #include +// fwd enum (obj cant depend on Contact3 +enum class Contact3 : uint32_t; + namespace ObjectStore::Components { // until i find a better name @@ -26,7 +31,6 @@ namespace ObjectStore::Components { // size_t bits {0}; }; -#if 0 // ephemeral?, not sure saving this to disk makes sense // tag remove have all? struct RemoteHaveBitset { @@ -36,7 +40,6 @@ namespace ObjectStore::Components { }; entt::dense_map others; }; -#endif // for single files or member of a collection diff --git a/src/solanaceae/object_store/meta_components_file_id.inl b/src/solanaceae/object_store/meta_components_file_id.inl index a3c2599..c1bf18c 100644 --- a/src/solanaceae/object_store/meta_components_file_id.inl +++ b/src/solanaceae/object_store/meta_components_file_id.inl @@ -20,7 +20,7 @@ constexpr std::string_view entt::type_name::value() noexcept { \ DEFINE_COMP_ID(ObjComp::F::TagLocalHaveAll) DEFINE_COMP_ID(ObjComp::F::LocalHaveBitset) -//DEFINE_COMP_ID(ObjComp::F::RemoteHaveBitset) +DEFINE_COMP_ID(ObjComp::F::RemoteHaveBitset) DEFINE_COMP_ID(ObjComp::F::SingleInfo) DEFINE_COMP_ID(ObjComp::F::SingleInfoLocal) DEFINE_COMP_ID(ObjComp::F::Collection)