From 77647c6227f01d5ce17869b256a4b6e419ee13eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Fonseca?= Date: Sat, 7 Oct 2023 00:03:55 +0100 Subject: [PATCH] fix(collisions): subplugin should be private --- .../cubos/engine/collisions/broad_phase/candidates.hpp | 2 ++ engine/src/cubos/engine/collisions/broad_phase/plugin.cpp | 7 +++++-- .../cubos/engine/collisions/broad_phase/plugin.hpp | 0 .../engine/collisions/broad_phase/sweep_and_prune.cpp | 2 +- .../engine/collisions/broad_phase/sweep_and_prune.hpp | 0 engine/src/cubos/engine/collisions/plugin.cpp | 3 ++- 6 files changed, 10 insertions(+), 4 deletions(-) rename engine/{include => src}/cubos/engine/collisions/broad_phase/plugin.hpp (100%) rename engine/{include => src}/cubos/engine/collisions/broad_phase/sweep_and_prune.hpp (100%) diff --git a/engine/include/cubos/engine/collisions/broad_phase/candidates.hpp b/engine/include/cubos/engine/collisions/broad_phase/candidates.hpp index 84cb56ec1a..78c4a61e55 100644 --- a/engine/include/cubos/engine/collisions/broad_phase/candidates.hpp +++ b/engine/include/cubos/engine/collisions/broad_phase/candidates.hpp @@ -2,6 +2,8 @@ /// @brief Resource @ref cubos::engine::Candidates. /// @ingroup broad-phase-collisions-plugin +// FIXME: This should be private, but it's used in the sample. + #pragma once #include diff --git a/engine/src/cubos/engine/collisions/broad_phase/plugin.cpp b/engine/src/cubos/engine/collisions/broad_phase/plugin.cpp index 21142c10b1..57395ee28e 100644 --- a/engine/src/cubos/engine/collisions/broad_phase/plugin.cpp +++ b/engine/src/cubos/engine/collisions/broad_phase/plugin.cpp @@ -1,11 +1,14 @@ + +#include "plugin.hpp" + #include -#include -#include #include #include #include #include +#include "sweep_and_prune.hpp" + using cubos::core::ecs::OptRead; using cubos::core::ecs::Query; using cubos::core::ecs::Read; diff --git a/engine/include/cubos/engine/collisions/broad_phase/plugin.hpp b/engine/src/cubos/engine/collisions/broad_phase/plugin.hpp similarity index 100% rename from engine/include/cubos/engine/collisions/broad_phase/plugin.hpp rename to engine/src/cubos/engine/collisions/broad_phase/plugin.hpp diff --git a/engine/src/cubos/engine/collisions/broad_phase/sweep_and_prune.cpp b/engine/src/cubos/engine/collisions/broad_phase/sweep_and_prune.cpp index d4170bfe0b..bee8403b02 100644 --- a/engine/src/cubos/engine/collisions/broad_phase/sweep_and_prune.cpp +++ b/engine/src/cubos/engine/collisions/broad_phase/sweep_and_prune.cpp @@ -1,6 +1,6 @@ #include -#include +#include "sweep_and_prune.hpp" using cubos::core::ecs::Entity; using namespace cubos::engine; diff --git a/engine/include/cubos/engine/collisions/broad_phase/sweep_and_prune.hpp b/engine/src/cubos/engine/collisions/broad_phase/sweep_and_prune.hpp similarity index 100% rename from engine/include/cubos/engine/collisions/broad_phase/sweep_and_prune.hpp rename to engine/src/cubos/engine/collisions/broad_phase/sweep_and_prune.hpp diff --git a/engine/src/cubos/engine/collisions/plugin.cpp b/engine/src/cubos/engine/collisions/plugin.cpp index 01ab13424d..9be0a37aa9 100644 --- a/engine/src/cubos/engine/collisions/plugin.cpp +++ b/engine/src/cubos/engine/collisions/plugin.cpp @@ -1,6 +1,7 @@ +#include "broad_phase/plugin.hpp" + #include -#include #include #include #include