File tree Expand file tree Collapse file tree 11 files changed +168
-0
lines changed
Expand file tree Collapse file tree 11 files changed +168
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ ** EPITECH PROJECT, 2024
3+ ** ECS tests
4+ ** File description:
5+ ** ACore
6+ */
7+
8+ #include " ACore.hpp"
9+
10+ ACore::ACore (){}
11+
12+ ACore::~ACore (){}
Original file line number Diff line number Diff line change 1+ /*
2+ ** EPITECH PROJECT, 2024
3+ ** ECS tests
4+ ** File description:
5+ ** ACore
6+ */
7+
8+ #pragma once
9+
10+ #include " ICore.hpp"
11+ #include " Entities/IEntities.hpp"
12+ #include " Systeme/ISysteme.hpp"
13+ #include < vector>
14+
15+ class ACore : public ICore {
16+ public:
17+ ACore ();
18+ ~ACore ();
19+ private:
20+ std::vector<IEntities> _entities;
21+ std::vector<ISysteme> _systems;
22+ };
Original file line number Diff line number Diff line change 1+ /*
2+ ** EPITECH PROJECT, 2024
3+ ** ECS tests
4+ ** File description:
5+ ** Icore
6+ */
7+
8+ #pragma once
9+
10+ class ICore {
11+ public:
12+ virtual ~ICore () = default ;
13+ };
Original file line number Diff line number Diff line change 1+ /*
2+ ** EPITECH PROJECT, 2024
3+ ** ECS tests
4+ ** File description:
5+ ** AEntities
6+ */
7+
8+ #include " AEntities.hpp"
9+
10+ AEntities::AEntities (std::string name){
11+ this ->_components [name] = IComponent ();
12+ }
13+
14+ AEntities::~AEntities (){}
Original file line number Diff line number Diff line change 1+ /*
2+ ** EPITECH PROJECT, 2024
3+ ** ECS tests
4+ ** File description:
5+ ** AEntities
6+ */
7+
8+ #pragma once
9+
10+ #include " IEntities.hpp"
11+ #include " Component/IComponent.hpp"
12+ #include < vector>
13+ #include < string>
14+ #include < unordered_map>
15+
16+ class AEntities : public IEntities {
17+ public:
18+ AEntities (std::string name);
19+ ~AEntities ();
20+ private:
21+ std::unordered_map<std::string, IComponent> _components;
22+ };
Original file line number Diff line number Diff line change 1+ /*
2+ ** EPITECH PROJECT, 2024
3+ ** ECS tests
4+ ** File description:
5+ ** Component
6+ */
7+
8+ #include " Component.hpp"
9+
10+ Component::Component (){}
11+
12+ Component::~Component (){}
Original file line number Diff line number Diff line change 1+ /*
2+ ** EPITECH PROJECT, 2024
3+ ** ECS tests
4+ ** File description:
5+ ** Component
6+ */
7+
8+ #pragma once
9+
10+ #include " IComponent.hpp"
11+
12+ class Component : public IComponent {
13+ public:
14+ Component ();
15+ ~Component ();
16+ };
Original file line number Diff line number Diff line change 1+ /*
2+ ** EPITECH PROJECT, 2024
3+ ** ECS tests
4+ ** File description:
5+ ** IComponent
6+ */
7+
8+ #pragma once
9+
10+ class IComponent {
11+ public:
12+ virtual ~IComponent () = default ;
13+ };
Original file line number Diff line number Diff line change 1+ /*
2+ ** EPITECH PROJECT, 2024
3+ ** ECS tests
4+ ** File description:
5+ ** IEntities
6+ */
7+
8+ #pragma once
9+
10+ class IEntities {
11+ public:
12+ virtual ~IEntities () = default ;
13+ };
Original file line number Diff line number Diff line change 1+ /*
2+ ** EPITECH PROJECT, 2024
3+ ** ECS tests
4+ ** File description:
5+ ** ASysteme
6+ */
7+
8+ #pragma once
9+
10+ #include " ISysteme.hpp"
11+
12+ class ASysteme : public ISysteme {
13+ public:
14+ ASysteme ();
15+ ~ASysteme ();
16+ private:
17+ /* data */
18+ };
You can’t perform that action at this time.
0 commit comments