update entt to v3.15.0

This commit is contained in:
Green Sky
2025-05-24 22:33:48 +02:00
parent 8801d5cde5
commit 4ec8f98ab0
5 changed files with 6 additions and 3 deletions

2
external/entt vendored

View File

@ -111,7 +111,7 @@ namespace MM::Services {
if (ImGui::Begin("Scene Metrics##ImGuiSceneToolsService", &_show_scene_metrics)) { if (ImGui::Begin("Scene Metrics##ImGuiSceneToolsService", &_show_scene_metrics)) {
ImGui::Text("capacity: %zu", scene.storage<::MM::Entity>().capacity()); ImGui::Text("capacity: %zu", scene.storage<::MM::Entity>().capacity());
ImGui::Text("size: %zu", scene.storage<::MM::Entity>().size()); ImGui::Text("size: %zu", scene.storage<::MM::Entity>().size());
ImGui::Text("alive: %zu", scene.storage<::MM::Entity>().in_use()); ImGui::Text("alive: %zu", scene.storage<::MM::Entity>().free_list());
if (ImGui::CollapsingHeader("orphans")) { if (ImGui::CollapsingHeader("orphans")) {
// iterating all entities is expensive // iterating all entities is expensive
size_t orphans = 0; size_t orphans = 0;

View File

@ -23,7 +23,7 @@ static std::ostream& operator<<(std::ostream& out, const std::vector<entt::organ
} }
for (size_t i = 0; i < nodes.size(); i++) { for (size_t i = 0; i < nodes.size(); i++) {
for (const size_t child : nodes[i].children()) { for (const size_t child : nodes[i].in_edges()) {
out << "n" << child << " -> " << "n" << i << ";\n"; out << "n" << child << " -> " << "n" << i << ";\n";
} }
} }

View File

@ -4,6 +4,8 @@
#include <mm/services/input_service.hpp> #include <mm/services/input_service.hpp>
#include <mm/components/velocity2d_position_intent.hpp> #include <mm/components/velocity2d_position_intent.hpp>
#include <entt/entity/storage.hpp>
namespace MM::Systems { namespace MM::Systems {
// this system transforms the input from the input_service into velocity intent // this system transforms the input from the input_service into velocity intent

View File

@ -7,6 +7,7 @@
#include <mm/components/time_delta.hpp> #include <mm/components/time_delta.hpp>
#include <entt/fwd.hpp> #include <entt/fwd.hpp>
#include <entt/entity/storage.hpp>
namespace MM::Systems { namespace MM::Systems {