Architecture Arcade
Architecture Commune Arcade
IComponent.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2023
3 ** Archi Arcade Promo 2026 Toulouse
4 ** File description:
5 ** Components that will be added to entity
6 */
7 
8 #pragma once
9 
10 #include <string>
11 
12 namespace Arcade {
13  namespace ECS {
37  enum class CompType;
38 
39  struct IComponent {
40  public:
41  virtual ~IComponent() = default;
46  CompType type;
50  std::string id;
51  };
52  } // namespace ECS
53 }; // namespace Arcade
Definition: ArcadeStruct.hpp:10
Definition: IComponent.hpp:39
CompType type
Type of the component (it let you cast without headache)
Definition: IComponent.hpp:46
std::string id
Name of the component.
Definition: IComponent.hpp:50
virtual ~IComponent()=default