66 Log::Warning(fmt::format(
"Entity({}) has no Relationship component in ForEachChild", parent));
70 auto currentChildOpt = parentRS->
first;
71 while (currentChildOpt.has_value())
81 currentChildOpt = currentChildRS->
next;
Wrapper class providing a convenient interface for entity manipulation with the Core....
Definition Entity.hpp:20
decltype(auto) TryGetComponent()
Try to get a component of type TComponent from the entity. It returns a pointer to the component if i...
Definition Entity.hpp:137
void Warning(const T &msg) noexcept
Definition Logger.hpp:49
auto IsChildOf(Engine::Entity child, Engine::Entity parent) -> bool
Definition Utils.cpp:30
auto ForEachChild(Engine::Entity parent, TFunc func) -> void
Definition Utils.hpp:60
auto GetParent(Engine::Entity child) -> std::optional< Engine::Entity >
Definition Utils.cpp:75
auto SetChildOf(Engine::Entity child, Engine::Entity parent) -> void
Definition Utils.cpp:5
auto RemoveParent(Engine::Entity child) -> void
Definition Utils.cpp:37
Definition Relationship.hpp:31
std::optional< Engine::Entity > next
Definition Relationship.hpp:39
std::optional< Engine::Entity > first
Definition Relationship.hpp:35