add remove have

This commit is contained in:
Green Sky 2024-12-14 15:29:24 +01:00
parent ed640ba08c
commit 18d2888e34
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View File

@ -4,9 +4,14 @@
#include <solanaceae/util/bitset.hpp> #include <solanaceae/util/bitset.hpp>
#include <entt/container/dense_map.hpp>
#include <vector> #include <vector>
#include <string> #include <string>
// fwd enum (obj cant depend on Contact3
enum class Contact3 : uint32_t;
namespace ObjectStore::Components { namespace ObjectStore::Components {
// until i find a better name // until i find a better name
@ -26,7 +31,6 @@ namespace ObjectStore::Components {
// size_t bits {0}; // size_t bits {0};
}; };
#if 0
// ephemeral?, not sure saving this to disk makes sense // ephemeral?, not sure saving this to disk makes sense
// tag remove have all? // tag remove have all?
struct RemoteHaveBitset { struct RemoteHaveBitset {
@ -36,7 +40,6 @@ namespace ObjectStore::Components {
}; };
entt::dense_map<Contact3, Entry> others; entt::dense_map<Contact3, Entry> others;
}; };
#endif
// for single files or member of a collection // for single files or member of a collection

View File

@ -20,7 +20,7 @@ constexpr std::string_view entt::type_name<x>::value() noexcept { \
DEFINE_COMP_ID(ObjComp::F::TagLocalHaveAll) DEFINE_COMP_ID(ObjComp::F::TagLocalHaveAll)
DEFINE_COMP_ID(ObjComp::F::LocalHaveBitset) 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::SingleInfo)
DEFINE_COMP_ID(ObjComp::F::SingleInfoLocal) DEFINE_COMP_ID(ObjComp::F::SingleInfoLocal)
DEFINE_COMP_ID(ObjComp::F::Collection) DEFINE_COMP_ID(ObjComp::F::Collection)