CoriEngine
Loading...
Searching...
No Matches
Cori::World::Systems::Hierarchy Class Referencefinal

#include <Hierarchy.hpp>

Inheritance diagram for Cori::World::Systems::Hierarchy:
Collaboration diagram for Cori::World::Systems::Hierarchy:

Public Member Functions

bool Create ()
virtual void OnUpdate (Core::GameTimer &gameTimer)
virtual void OnTickUpdate (Core::GameTimer &gameTimer)
virtual void OnImGuiRender (Core::GameTimer &gameTimer)

Static Public Attributes

static constexpr SystemPriority Priority = 50

Static Protected Member Functions

static std::expected< void, Core::CoriError<> > SetParent (Entity subject, Entity parent)
static std::expected< void, Core::CoriError<> > LinkToParent (Entity subject, Entity parent)
static void UnlinkFromParent (Entity subject)
static std::expected< std::vector< Entity >, Core::CoriError<> > GetSiblings (Entity subject)
static std::expected< std::vector< Entity >, Core::CoriError<> > GetChildren (Entity subject)
static std::expected< Entity, Core::CoriError<> > GetParent (Entity subject)
static std::expected< Entity, Core::CoriError<> > FindChildByName (Entity subject, const char *name)
static std::expected< Entity, Core::CoriError<> > FindChildByName (Entity subject, const std::string_view name)
static std::expected< Entity, Core::CoriError<> > FindChildByName (Entity subject, const std::string &name)
static void DestroyChildren (Entity subject)
static void PrintHierarchy (Entity subject)
static void DrawHierarchyRecursive (const Entity &entity, const std::string &prefix, const bool isLast)

Protected Attributes

friend Entity
SceneHandle m_Owner { nullptr }

Detailed Description

Definition at line 7 of file Hierarchy.hpp.

Member Function Documentation

◆ Create()

bool Cori::World::Systems::Hierarchy::Create ( )

Definition at line 6 of file Hierarchy.cpp.

◆ DestroyChildren()

void Cori::World::Systems::Hierarchy::DestroyChildren ( Entity subject)
staticprotected

Definition at line 181 of file Hierarchy.cpp.

Here is the call graph for this function:

◆ DrawHierarchyRecursive()

void Cori::World::Systems::Hierarchy::DrawHierarchyRecursive ( const Entity & entity,
const std::string & prefix,
const bool isLast )
staticprotected

Definition at line 233 of file Hierarchy.cpp.

Here is the call graph for this function:

◆ FindChildByName() [1/3]

std::expected< Entity, Core::CoriError<> > Cori::World::Systems::Hierarchy::FindChildByName ( Entity subject,
const char * name )
staticprotected

Definition at line 139 of file Hierarchy.cpp.

Here is the call graph for this function:

◆ FindChildByName() [2/3]

std::expected< Entity, Core::CoriError<> > Cori::World::Systems::Hierarchy::FindChildByName ( Entity subject,
const std::string & name )
staticprotected

Definition at line 167 of file Hierarchy.cpp.

Here is the call graph for this function:

◆ FindChildByName() [3/3]

std::expected< Entity, Core::CoriError<> > Cori::World::Systems::Hierarchy::FindChildByName ( Entity subject,
const std::string_view name )
staticprotected

Definition at line 153 of file Hierarchy.cpp.

Here is the call graph for this function:

◆ GetChildren()

std::expected< std::vector< Entity >, Core::CoriError<> > Cori::World::Systems::Hierarchy::GetChildren ( Entity subject)
staticprotected

Definition at line 109 of file Hierarchy.cpp.

Here is the call graph for this function:

◆ GetParent()

std::expected< Entity, Core::CoriError<> > Cori::World::Systems::Hierarchy::GetParent ( Entity subject)
staticprotected

Definition at line 126 of file Hierarchy.cpp.

Here is the call graph for this function:

◆ GetSiblings()

std::expected< std::vector< Entity >, Core::CoriError<> > Cori::World::Systems::Hierarchy::GetSiblings ( Entity subject)
staticprotected

Definition at line 90 of file Hierarchy.cpp.

Here is the call graph for this function:

◆ LinkToParent()

std::expected< void, Core::CoriError<> > Cori::World::Systems::Hierarchy::LinkToParent ( Entity subject,
Entity parent )
staticprotected

Definition at line 20 of file Hierarchy.cpp.

Here is the call graph for this function:

◆ OnImGuiRender()

virtual void Cori::World::System::OnImGuiRender ( Core::GameTimer & gameTimer)
inlinevirtualinherited

Definition at line 35 of file System.hpp.

◆ OnTickUpdate()

virtual void Cori::World::System::OnTickUpdate ( Core::GameTimer & gameTimer)
inlinevirtualinherited

◆ OnUpdate()

virtual void Cori::World::System::OnUpdate ( Core::GameTimer & gameTimer)
inlinevirtualinherited

Reimplemented in Cori::World::Systems::Transform.

Definition at line 31 of file System.hpp.

◆ PrintHierarchy()

void Cori::World::Systems::Hierarchy::PrintHierarchy ( Entity subject)
staticprotected

Definition at line 196 of file Hierarchy.cpp.

Here is the call graph for this function:

◆ SetParent()

std::expected< void, Core::CoriError<> > Cori::World::Systems::Hierarchy::SetParent ( Entity subject,
Entity parent )
staticprotected

Definition at line 11 of file Hierarchy.cpp.

Here is the call graph for this function:

◆ UnlinkFromParent()

void Cori::World::Systems::Hierarchy::UnlinkFromParent ( Entity subject)
staticprotected

Definition at line 50 of file Hierarchy.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ Entity

friend Cori::World::Systems::Hierarchy::Entity
protected

Definition at line 14 of file Hierarchy.hpp.

◆ m_Owner

SceneHandle Cori::World::System::m_Owner { nullptr }
protectedinherited

Definition at line 38 of file System.hpp.

◆ Priority

SystemPriority Cori::World::Systems::Hierarchy::Priority = 50
staticconstexpr

Definition at line 12 of file Hierarchy.hpp.


The documentation for this class was generated from the following files: