47 std::vector<Node*> m_children;
55 const char* m_nodeType;
61 Node(std::string name);
134 virtual void Update(
float dt);
A collection of utilities for the game engine code.
Success
A generic success type.
Definition Utils.hpp:29
A single node in a game scene.
Definition Node.hpp:43
size_t AddChild(Node *child)
Adds a child to the node and assigns itself as the parent of the new node.
Definition Node.cpp:22
Success RemoveChild(size_t index)
Removes the child at the specified index.
Definition Node.cpp:33
virtual void OnDisable()
Overridable disable method for the node.
Definition Node.cpp:60
virtual void Draw()
Overridable draw method for the node.
Definition Node.cpp:67
Node * GetChild(size_t index)
Returns a reference to the child at the specified index.
Definition Node.cpp:29
Success SetEnabled(bool enabled=true)
Toggles the state of the node.
Definition Node.cpp:41
virtual void OnEnable()
Overridable enable method for the node.
Definition Node.cpp:55
virtual void Update(float dt)
Overridable update method for the node.
Definition Node.cpp:75
virtual ~Node()
Default destructor.
Definition Node.cpp:16