Skip to content

File Parent.hpp

File List > Components > Parent.hpp

Go to the documentation of this file

#ifndef ENGINE_COMPONENTS_PARENT_HPP_
#define ENGINE_COMPONENTS_PARENT_HPP_

#include "ECS/Entity.hpp"

namespace Engine {
struct Parent {
    Entity parent = 0;

    static Parent Create(Entity parentEntity = 0) {
        Parent p;
        p.parent = parentEntity;
        return p;
    }
};
} // namespace Engine

#endif // ENGINE_COMPONENTS_PARENT_HPP_