Skip to content

Commit

Permalink
style(core): change name.cpp and name.hpp to be coesive
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomsmiranda committed Feb 11, 2024
1 parent af31eac commit 4ceecb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/include/cubos/core/ecs/name.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace cubos::core::ecs
{
///@brief Component which stores the name of an entity.
/// @brief Component which stores the name of an entity.

struct Name
{
Expand Down
7 changes: 2 additions & 5 deletions core/src/ecs/name.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#include <cubos/core/ecs/name.hpp>

#include <cubos/core/ecs/reflection.hpp>
#include <cubos/core/reflection/external/string.hpp>

CUBOS_REFLECT_IMPL(cubos::core::ecs::Name)
{
return core::ecs::TypeBuilder<Name>("cubos::core::ecs::Name")
.withField("name", &Name::value)
.build();
}
return core::ecs::TypeBuilder<Name>("cubos::core::ecs::Name").withField("value", &Name::value).build();
}

0 comments on commit 4ceecb5

Please sign in to comment.