From 01b67032e029e517af0b180f71f79ada399cc4a4 Mon Sep 17 00:00:00 2001 From: Master_Laplace Date: Mon, 8 Jan 2024 12:57:53 +0100 Subject: [PATCH] feat(Components): Add Components2D header file --- CMakeLists.txt | 1 + .../Components/Components2D.hpp | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 Flakkari/Engine/EntityComponentSystem/Components/Components2D.hpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 812b2572..53fe6197 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,7 @@ set(HEADERS Flakkari/Protocol/Header.hpp Flakkari/Protocol/Packet.hpp Flakkari/Engine/Math/Vector.hpp + Flakkari/Engine/EntityComponentSystem/Components/Components2D.hpp Flakkari/Engine/EntityComponentSystem/Entity.hpp Flakkari/Engine/EntityComponentSystem/SparseArrays.hpp Flakkari/Engine/EntityComponentSystem/Registry.hpp diff --git a/Flakkari/Engine/EntityComponentSystem/Components/Components2D.hpp b/Flakkari/Engine/EntityComponentSystem/Components/Components2D.hpp new file mode 100644 index 00000000..346df6df --- /dev/null +++ b/Flakkari/Engine/EntityComponentSystem/Components/Components2D.hpp @@ -0,0 +1,22 @@ +/************************************************************************** + * Flakkari Engine Library v0.1.0 + * + * Flakkari Library is a C++ Library for Network. + * @file Components2D.hpp + * @brief Components2D header. Contains all 2D components. + * (Collider, Movable, RigidBody, Transform) + * + * Flakkari Library is under MIT License. + * https://opensource.org/licenses/MIT + * © 2023 @MasterLaplace + * @version 0.1.0 + * @date 2023-01-06 + **************************************************************************/ + +#ifndef COMPONENTS2D_HPP_ +#define COMPONENTS2D_HPP_ + +#include "2D/Movable.hpp" // Movable component (velocity, angularVelocity, acceleration, angularAcceleration) +#include "2D/Transform.hpp" // Transform component (position, rotation, scale) + +#endif /* !COMPONENTS2D_HPP_ */