2#ifndef LIBSBX_SCENES_COMPONENTS_RELATIONSHIP_HPP_
3#define LIBSBX_SCENES_COMPONENTS_RELATIONSHIP_HPP_
5#include <libsbx/math/uuid.hpp>
10#include <libsbx/scenes/node.hpp>
12namespace sbx::scenes {
21 auto parent()
const noexcept ->
node {
25 auto set_parent(
const node parent)
noexcept ->
void {
29 auto children()
const noexcept ->
const std::vector<node>& {
33 auto children()
noexcept -> std::vector<node>& {
37 auto add_child(
const node child) ->
void {
38 _children.push_back(child);
41 auto remove_child(
const node child) ->
void {
42 std::erase(_children, child);
48 std::vector<node> _children;
Definition: relationship.hpp:14