// 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_SKELETONCOMPONENTBASE_HPP #define NAZARA_UTILITY_COMPONENTS_SKELETONCOMPONENTBASE_HPP #include #include #include namespace Nz { class NAZARA_UTILITY_API SkeletonComponentBase { public: SkeletonComponentBase(const SkeletonComponentBase&) = default; SkeletonComponentBase(SkeletonComponentBase&&) noexcept = default; ~SkeletonComponentBase() = default; inline std::size_t FindJointByName(const std::string& jointName) const; inline const Joint& GetAttachedJoint(std::size_t jointIndex) const; inline const std::shared_ptr& GetSkeleton() const; SkeletonComponentBase& operator=(const SkeletonComponentBase&) = default; SkeletonComponentBase& operator=(SkeletonComponentBase&&) noexcept = default; protected: SkeletonComponentBase(std::shared_ptr skeleton); virtual const Skeleton& GetAttachedSkeleton() const = 0; std::shared_ptr m_referenceSkeleton; }; } #include #endif // NAZARA_UTILITY_COMPONENTS_SKELETONCOMPONENTBASE_HPP