// 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 #include #include namespace Nz { inline SkeletonComponentBase::SkeletonComponentBase(std::shared_ptr skeleton) : m_referenceSkeleton(std::move(skeleton)) { } inline std::size_t SkeletonComponentBase::FindJointByName(const std::string& jointName) const { return m_referenceSkeleton->GetJointIndex(jointName); } inline const Joint& SkeletonComponentBase::GetAttachedJoint(std::size_t jointIndex) const { return *GetAttachedSkeleton().GetJoint(jointIndex); } inline const std::shared_ptr& SkeletonComponentBase::GetSkeleton() const { return m_referenceSkeleton; } } #include