diff --git a/include/Nazara/Utility/Components/SkeletonComponent.hpp b/include/Nazara/Utility/Components/SkeletonComponent.hpp index 8c2194752..b0dcf0fb8 100644 --- a/include/Nazara/Utility/Components/SkeletonComponent.hpp +++ b/include/Nazara/Utility/Components/SkeletonComponent.hpp @@ -18,18 +18,18 @@ namespace Nz class NAZARA_UTILITY_API SkeletonComponent final : public SkeletonComponentBase { public: - SkeletonComponent(std::shared_ptr skeleton); + inline SkeletonComponent(std::shared_ptr skeleton); SkeletonComponent(const SkeletonComponent&) = delete; SkeletonComponent(SkeletonComponent&& skeletalComponent) noexcept = default; ~SkeletonComponent() = default; - Node* GetRootNode(); + inline Node* GetRootNode(); SkeletonComponent& operator=(const SkeletonComponent&) = delete; SkeletonComponent& operator=(SkeletonComponent&& skeletalComponent) noexcept = default; private: - const Skeleton& GetAttachedSkeleton() const override; + inline const Skeleton& GetAttachedSkeleton() const override; }; } diff --git a/include/Nazara/Utility/Components/SkeletonComponent.inl b/include/Nazara/Utility/Components/SkeletonComponent.inl index a4a6cbe31..316c68b18 100644 --- a/include/Nazara/Utility/Components/SkeletonComponent.inl +++ b/include/Nazara/Utility/Components/SkeletonComponent.inl @@ -6,6 +6,20 @@ namespace Nz { + inline SkeletonComponent::SkeletonComponent(std::shared_ptr skeleton) : + SkeletonComponentBase(std::move(skeleton)) + { + } + + inline Node* SkeletonComponent::GetRootNode() + { + return m_referenceSkeleton->GetRootJoint(); + } + + inline const Skeleton& SkeletonComponent::GetAttachedSkeleton() const + { + return *m_referenceSkeleton; + } } #include diff --git a/src/Nazara/BulletPhysics3D/Components/BulletRigidBody3DComponent.cpp b/src/Nazara/BulletPhysics3D/Components/BulletRigidBody3DComponent.cpp deleted file mode 100644 index 456883331..000000000 --- a/src/Nazara/BulletPhysics3D/Components/BulletRigidBody3DComponent.cpp +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) -// This file is part of the "Nazara Engine - BulletPhysics3D module" -// For conditions of distribution and use, see copyright notice in Config.hpp - -#include -#include - -namespace Nz -{ -} diff --git a/src/Nazara/ChipmunkPhysics2D/Components/ChipmunkRigidBody2DComponent.cpp b/src/Nazara/ChipmunkPhysics2D/Components/ChipmunkRigidBody2DComponent.cpp deleted file mode 100644 index d5f0223b2..000000000 --- a/src/Nazara/ChipmunkPhysics2D/Components/ChipmunkRigidBody2DComponent.cpp +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) -// This file is part of the "Nazara Engine - ChipmunkPhysics2D module" -// For conditions of distribution and use, see copyright notice in Config.hpp - -#include -#include - -namespace Nz -{ -} diff --git a/src/Nazara/Graphics/Components/CameraComponent.cpp b/src/Nazara/Graphics/Components/CameraComponent.cpp deleted file mode 100644 index 22b50fd9b..000000000 --- a/src/Nazara/Graphics/Components/CameraComponent.cpp +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) -// This file is part of the "Nazara Engine - Graphics module" -// For conditions of distribution and use, see copyright notice in Config.hpp - -#include -#include - -namespace Nz -{ -} diff --git a/src/Nazara/Graphics/Components/GraphicsComponent.cpp b/src/Nazara/Graphics/Components/GraphicsComponent.cpp deleted file mode 100644 index 89c474b5c..000000000 --- a/src/Nazara/Graphics/Components/GraphicsComponent.cpp +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) -// This file is part of the "Nazara Engine - Graphics module" -// For conditions of distribution and use, see copyright notice in Config.hpp - -#include -#include - -namespace Nz -{ -} diff --git a/src/Nazara/Graphics/Components/LightComponent.cpp b/src/Nazara/Graphics/Components/LightComponent.cpp deleted file mode 100644 index 21a2b6353..000000000 --- a/src/Nazara/Graphics/Components/LightComponent.cpp +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) -// This file is part of the "Nazara Engine - Graphics module" -// For conditions of distribution and use, see copyright notice in Config.hpp - -#include -#include - -namespace Nz -{ -} diff --git a/src/Nazara/JoltPhysics3D/Components/JoltRigidBody3DComponent.cpp b/src/Nazara/JoltPhysics3D/Components/JoltRigidBody3DComponent.cpp deleted file mode 100644 index 314147032..000000000 --- a/src/Nazara/JoltPhysics3D/Components/JoltRigidBody3DComponent.cpp +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) -// This file is part of the "Nazara Engine - JoltPhysics3D module" -// For conditions of distribution and use, see copyright notice in Config.hpp - -#include -#include -#include - -namespace Nz -{ -} diff --git a/src/Nazara/Utility/Components/SkeletonComponent.cpp b/src/Nazara/Utility/Components/SkeletonComponent.cpp deleted file mode 100644 index 93e68b487..000000000 --- a/src/Nazara/Utility/Components/SkeletonComponent.cpp +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (C) 2023 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 -{ - SkeletonComponent::SkeletonComponent(std::shared_ptr skeleton) : - SkeletonComponentBase(std::move(skeleton)) - { - } - - Node* SkeletonComponent::GetRootNode() - { - return m_referenceSkeleton->GetRootJoint(); - } - - const Skeleton& SkeletonComponent::GetAttachedSkeleton() const - { - return *m_referenceSkeleton; - } -} diff --git a/src/Nazara/Utility/Components/SkeletonComponentBase.cpp b/src/Nazara/Utility/Components/SkeletonComponentBase.cpp deleted file mode 100644 index 5c76f5899..000000000 --- a/src/Nazara/Utility/Components/SkeletonComponentBase.cpp +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (C) 2023 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 -{ -}