mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-06-18 10:46:37 +02:00
update entt to v3.15.0
This commit is contained in:
2
external/entt
vendored
2
external/entt
vendored
Submodule external/entt updated: 344e03ac64...d4014c74dc
@ -111,7 +111,7 @@ namespace MM::Services {
|
||||
if (ImGui::Begin("Scene Metrics##ImGuiSceneToolsService", &_show_scene_metrics)) {
|
||||
ImGui::Text("capacity: %zu", scene.storage<::MM::Entity>().capacity());
|
||||
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")) {
|
||||
// iterating all entities is expensive
|
||||
size_t orphans = 0;
|
||||
|
@ -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 (const size_t child : nodes[i].children()) {
|
||||
for (const size_t child : nodes[i].in_edges()) {
|
||||
out << "n" << child << " -> " << "n" << i << ";\n";
|
||||
}
|
||||
}
|
||||
|
@ -4,6 +4,8 @@
|
||||
#include <mm/services/input_service.hpp>
|
||||
#include <mm/components/velocity2d_position_intent.hpp>
|
||||
|
||||
#include <entt/entity/storage.hpp>
|
||||
|
||||
namespace MM::Systems {
|
||||
|
||||
// this system transforms the input from the input_service into velocity intent
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include <mm/components/time_delta.hpp>
|
||||
|
||||
#include <entt/fwd.hpp>
|
||||
#include <entt/entity/storage.hpp>
|
||||
|
||||
namespace MM::Systems {
|
||||
|
||||
|
Reference in New Issue
Block a user