Skip to content

Commit

Permalink
fix(engine): add missing CUBOS_ENGINE_API to new tool functions
Browse files Browse the repository at this point in the history
  • Loading branch information
RiscadoA committed Oct 9, 2024
1 parent 2ac8c9d commit 4ebb4a3
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 14 deletions.
3 changes: 2 additions & 1 deletion engine/include/cubos/engine/tools/console/plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#pragma once

#include <cubos/engine/api.hpp>
#include <cubos/engine/prelude.hpp>

namespace cubos::engine
Expand All @@ -18,5 +19,5 @@ namespace cubos::engine
/// @brief Plugin entry function.
/// @param cubos @b Cubos main class
/// @ingroup console-tool-plugin
void consolePlugin(Cubos& cubos);
CUBOS_ENGINE_API void consolePlugin(Cubos& cubos);
} // namespace cubos::engine
3 changes: 2 additions & 1 deletion engine/include/cubos/engine/tools/debug_camera/plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#pragma once

#include <cubos/engine/api.hpp>
#include <cubos/engine/prelude.hpp>

namespace cubos::engine
Expand All @@ -18,5 +19,5 @@ namespace cubos::engine
/// @brief Plugin entry function.
/// @param cubos @b Cubos main class
/// @ingroup debug-camera-tool-plugin
void debugCameraPlugin(Cubos& cubos);
CUBOS_ENGINE_API void debugCameraPlugin(Cubos& cubos);
} // namespace cubos::engine
3 changes: 2 additions & 1 deletion engine/include/cubos/engine/tools/ecs_statistics/plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#pragma once

#include <cubos/engine/api.hpp>
#include <cubos/engine/prelude.hpp>

namespace cubos::engine
Expand All @@ -18,5 +19,5 @@ namespace cubos::engine
/// @brief Plugin entry function.
/// @param cubos @b Cubos main class
/// @ingroup ecs-statistics-tool-plugin
void ecsStatisticsPlugin(Cubos& cubos);
CUBOS_ENGINE_API void ecsStatisticsPlugin(Cubos& cubos);
} // namespace cubos::engine
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#pragma once

#include <cubos/engine/api.hpp>
#include <cubos/engine/prelude.hpp>

namespace cubos::engine
Expand All @@ -18,5 +19,5 @@ namespace cubos::engine
/// @brief Plugin entry function.
/// @param cubos @b Cubos main class
/// @ingroup entity-inspector-tool-plugin
void entityInspectorPlugin(Cubos& cubos);
CUBOS_ENGINE_API void entityInspectorPlugin(Cubos& cubos);
} // namespace cubos::engine
3 changes: 2 additions & 1 deletion engine/include/cubos/engine/tools/metrics_panel/plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#pragma once

#include <cubos/engine/api.hpp>
#include <cubos/engine/prelude.hpp>

namespace cubos::engine
Expand All @@ -18,5 +19,5 @@ namespace cubos::engine
/// @brief Plugin entry function.
/// @param cubos @b Cubos main class
/// @ingroup metrics-panel-tool-plugin
void metricsPanelPlugin(Cubos& cubos);
CUBOS_ENGINE_API void metricsPanelPlugin(Cubos& cubos);
} // namespace cubos::engine
3 changes: 2 additions & 1 deletion engine/include/cubos/engine/tools/play_pause/plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#pragma once

#include <cubos/engine/api.hpp>
#include <cubos/engine/prelude.hpp>

namespace cubos::engine
Expand All @@ -18,5 +19,5 @@ namespace cubos::engine
/// @brief Plugin entry function.
/// @param cubos @b Cubos main class
/// @ingroup play-pause-tool-plugin
void playPauseToolPlugin(Cubos& cubos);
CUBOS_ENGINE_API void playPauseToolPlugin(Cubos& cubos);
} // namespace cubos::engine
3 changes: 2 additions & 1 deletion engine/include/cubos/engine/tools/plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#pragma once

#include <cubos/engine/api.hpp>
#include <cubos/engine/prelude.hpp>

namespace cubos::engine
Expand All @@ -20,5 +21,5 @@ namespace cubos::engine
/// @brief Plugin entry function.
/// @param cubos @b Cubos main class
/// @ingroup tool-plugins
void toolsPlugin(Cubos& cubos);
CUBOS_ENGINE_API void toolsPlugin(Cubos& cubos);
} // namespace cubos::engine
2 changes: 1 addition & 1 deletion engine/include/cubos/engine/tools/selection/plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ namespace cubos::engine
/// @brief Plugin entry function.
/// @param cubos @b Cubos main class
/// @ingroup selection-tool-plugin
void selectionPlugin(Cubos& cubos);
CUBOS_ENGINE_API void selectionPlugin(Cubos& cubos);
} // namespace cubos::engine
4 changes: 3 additions & 1 deletion engine/include/cubos/engine/tools/selection/selection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@

#include <cubos/core/ecs/entity/entity.hpp>

#include <cubos/engine/api.hpp>

namespace cubos::engine
{
/// @brief Resource which identifies the current selection.
/// @ingroup selection-tool-plugin
struct Selection
struct CUBOS_ENGINE_API Selection
{
CUBOS_REFLECT;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#pragma once

#include <cubos/engine/api.hpp>
#include <cubos/engine/prelude.hpp>

namespace cubos::engine
Expand All @@ -18,5 +19,5 @@ namespace cubos::engine
/// @brief Plugin entry function.
/// @param cubos @b Cubos main class
/// @ingroup settings-inspector-tool-plugin
void settingsInspectorPlugin(Cubos& cubos);
CUBOS_ENGINE_API void settingsInspectorPlugin(Cubos& cubos);
} // namespace cubos::engine
2 changes: 1 addition & 1 deletion engine/include/cubos/engine/tools/toolbox/plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ namespace cubos::engine
/// @brief Plugin entry function.
/// @param cubos @b Cubos main class
/// @ingroup toolbox-tool-plugin
void toolboxPlugin(Cubos& cubos);
CUBOS_ENGINE_API void toolboxPlugin(Cubos& cubos);
} // namespace cubos::engine
3 changes: 2 additions & 1 deletion engine/include/cubos/engine/tools/toolbox/toolbox.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

#pragma once

#include <cubos/engine/api.hpp>
#include <cubos/engine/prelude.hpp>

namespace cubos::engine
{
/// @brief Manages the visibility of each tool.
/// @ingroup toolbox-tool-plugin
class Toolbox final
class CUBOS_ENGINE_API Toolbox final
{
public:
CUBOS_REFLECT;
Expand Down
3 changes: 2 additions & 1 deletion engine/include/cubos/engine/tools/transform_gizmo/plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#pragma once

#include <cubos/engine/api.hpp>
#include <cubos/engine/prelude.hpp>

namespace cubos::engine
Expand All @@ -23,5 +24,5 @@ namespace cubos::engine
/// @brief Plugin entry function.
/// @param cubos @b Cubos main class
/// @ingroup transform-gizmo-tool-plugin
void transformGizmoPlugin(Cubos& cubos);
CUBOS_ENGINE_API void transformGizmoPlugin(Cubos& cubos);
} // namespace cubos::engine
3 changes: 2 additions & 1 deletion engine/include/cubos/engine/tools/world_inspector/plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#pragma once

#include <cubos/engine/api.hpp>
#include <cubos/engine/prelude.hpp>

namespace cubos::engine
Expand All @@ -18,5 +19,5 @@ namespace cubos::engine
/// @brief Plugin entry function.
/// @param cubos @b Cubos main class
/// @ingroup world-inspector-tool-plugin
void worldInspectorPlugin(Cubos& cubos);
CUBOS_ENGINE_API void worldInspectorPlugin(Cubos& cubos);
} // namespace cubos::engine

0 comments on commit 4ebb4a3

Please sign in to comment.