Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move resource stuff to the ecs/resource directory #650

Merged
merged 2 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// @file
/// @brief Class @ref cubos::core::ecs::ResourceManager and related types.
/// @ingroup core-ecs
/// @ingroup core-ecs-resource

#pragma once

Expand All @@ -15,7 +15,7 @@ namespace cubos::core::ecs
{
/// @brief Utility struct used to reference a resource of type @p T for reading.
/// @tparam T Resource type.
/// @ingroup core-ecs
/// @ingroup core-ecs-resource
template <typename T>
class ReadResource
{
Expand All @@ -42,7 +42,7 @@ namespace cubos::core::ecs

/// @brief Utility struct used to reference a resource of type @p T for writing.
/// @tparam T Resource type.
/// @ingroup core-ecs
/// @ingroup core-ecs-resource
template <typename T>
class WriteResource
{
Expand Down Expand Up @@ -71,7 +71,7 @@ namespace cubos::core::ecs
///
/// Used internally by @ref World.
///
/// @ingroup core-ecs
/// @ingroup core-ecs-resource
class ResourceManager final
{
public:
Expand Down
9 changes: 9 additions & 0 deletions core/include/cubos/core/ecs/resource/module.dox
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/// @dir
/// @brief @ref core-ecs-resource directory.

namespace cubos::core::ecs
{
/// @defgroup core-ecs-resource Resource
/// @ingroup core-ecs
/// @brief Resource part of the ECS.
}
2 changes: 1 addition & 1 deletion core/include/cubos/core/ecs/world.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include <cubos/core/ecs/component/manager.hpp>
#include <cubos/core/ecs/entity/manager.hpp>
#include <cubos/core/ecs/resource_manager.hpp>
#include <cubos/core/ecs/resource/manager.hpp>
#include <cubos/core/log.hpp>

namespace cubos::core::ecs
Expand Down
Loading