Skip to content

Commit 30eef79

Browse files
Merge branch 'main' of github.com:michelguillaume/Epitech-RType
2 parents 1d8645d + c286cb4 commit 30eef79

File tree

11 files changed

+168
-0
lines changed

11 files changed

+168
-0
lines changed

ECS tests/Core/ACore.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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(){}

ECS tests/Core/ACore.hpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
};

ECS tests/Core/ICore.hpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
};

ECS tests/Entities/AEntities.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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(){}

ECS tests/Entities/AEntities.hpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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(){}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
};

ECS tests/Entities/IEntities.hpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
};

ECS tests/Systeme/ASysteme.hpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
};

0 commit comments

Comments
 (0)