26 static std::expected<Entity, Core::CoriError<>>
GetParent(
Entity subject);
30 static std::expected<Entity, Core::CoriError<>>
FindChildByName(
Entity subject,
const std::string_view name);
32 static std::expected<Entity, Core::CoriError<>>
FindChildByName(
Entity subject,
const std::string& name);
41 void OnHierarchyComponentDestroyed(entt::registry& registry, entt::entity entity);
Custom error class mainly used in std::expected.
System(const System &)=delete
static std::expected< std::vector< Entity >, Core::CoriError<> > GetSiblings(Entity subject)
static void DrawHierarchyRecursive(const Entity &entity, const std::string &prefix, const bool isLast)
static std::expected< void, Core::CoriError<> > LinkToParent(Entity subject, Entity parent)
static std::expected< Entity, Core::CoriError<> > GetParent(Entity subject)
static std::expected< Entity, Core::CoriError<> > FindChildByName(Entity subject, const char *name)
static std::expected< void, Core::CoriError<> > SetParent(Entity subject, Entity parent)
static void UnlinkFromParent(Entity subject)
static constexpr SystemPriority Priority
static void DestroyChildren(Entity subject)
static std::expected< std::vector< Entity >, Core::CoriError<> > GetChildren(Entity subject)
static void PrintHierarchy(Entity subject)
Anything connected to WorldSystem (ECS) is in this namespace.