NazaraEngine/include/Nazara/Utility/Components/NodeComponent.hpp

35 lines
1.0 KiB
C++

// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Utility module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_UTILITY_COMPONENTS_NODECOMPONENT_HPP
#define NAZARA_UTILITY_COMPONENTS_NODECOMPONENT_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Utility/Node.hpp>
#include <entt/entt.hpp>
namespace Nz
{
class NAZARA_UTILITY_API NodeComponent : public Node
{
public:
NodeComponent() = default;
NodeComponent(const NodeComponent&) = default;
NodeComponent(NodeComponent&&) noexcept = default;
~NodeComponent() = default;
void SetParent(entt::registry& registry, entt::entity entity, bool keepDerived = false);
using Node::SetParent;
NodeComponent& operator=(const NodeComponent&) = default;
NodeComponent& operator=(NodeComponent&&) noexcept = default;
};
}
#include <Nazara/Utility/Components/NodeComponent.inl>
#endif // NAZARA_UTILITY_COMPONENTS_NODECOMPONENT_HPP