fix destruction even and updated to contact4

This commit is contained in:
Green Sky 2025-03-06 16:13:57 +01:00
parent 0ba56d428f
commit 241a0c0906
No known key found for this signature in database
GPG Key ID: DBE05085D874AB4A
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
#include <string> #include <string>
// fwd enum (obj cant depend on Contact3 // fwd enum (obj cant depend on Contact3
enum class Contact3 : uint32_t; enum class Contact4 : uint32_t;
namespace ObjectStore::Components { namespace ObjectStore::Components {
@ -38,7 +38,7 @@ namespace ObjectStore::Components {
bool have_all {false}; bool have_all {false};
BitSet have; BitSet have;
}; };
entt::dense_map<Contact3, Entry> others; entt::dense_map<Contact4, Entry> others;
}; };

View File

@ -126,7 +126,7 @@ void ObjectStore2::throwEventDestroy(const Object o) {
std::cout << "OS debug: event destroy " << entt::to_integral(o) << "\n"; std::cout << "OS debug: event destroy " << entt::to_integral(o) << "\n";
dispatch( dispatch(
ObjectStore_Event::object_destroy, ObjectStore_Event::object_destroy,
ObjectStore::Events::ObjectUpdate{ ObjectStore::Events::ObjectDestory{
ObjectHandle{_reg, o} ObjectHandle{_reg, o}
} }
); );