18 template <
typename TComponent>
21 template <
typename TComponent>
33 template <
typename TComponent>
39 if(child->HasComponent<TComponent>())
42 outnodes.push_back(child);
49 template <
typename TComponent>
A scene node. Extends the registry with hierarchical information.
Definition foray_node.hpp:8
std::string mName
Definition foray_node.hpp:29
virtual ~Node()
Definition foray_node.hpp:24
int32_t FindChildrenWithComponent(std::vector< Node * > &outnodes)
Definition foray_node.hpp:34
Node * mParent
Definition foray_node.hpp:27
int32_t FindComponentsRecursive(std::vector< TComponent * > &outnodes)
Definition foray_node.hpp:50
std::vector< Node * > mChildren
Definition foray_node.hpp:28
FORAY_PROPERTY_R(Children)
ncomp::Transform * GetTransform()
Node(Scene *scene, Node *parent=nullptr)
Manages a type identified list of components.
Definition foray_registry.hpp:12
int32_t GetComponents(std::vector< TComponent * > &out)
Appends all components which can be cast to TComponent type to the out vector.
Definition foray_registry.hpp:145
Provides registries and methods as the anchor of a component based scene.
Definition foray_scene.hpp:17
Definition foray_animation.hpp:8