R-Type  2
Doom but in better
Loading...
Searching...
No Matches
Component.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2024
3** rtype (Workspace)
4** File description:
5** Component.hpp
6*/
7
13#pragma once
14#include <cstdint>
15
16#include "Log.hpp"
17#include "LogMacros.hpp"
18#include "Utilities.hpp"
20
21namespace GUI
22{
23 namespace ECS
24 {
25 class Component : public EntityNode {
26 public:
27 explicit Component(const std::uint32_t entity_id = 0) : _entity_id(entity_id) {};
28 virtual ~Component() = default;
29 virtual std::uint32_t getComponentId() const;
30
31 protected:
32 std::uint32_t _entity_id;
33 };
34 }
35}
36
37
This is the file that links the EntityNode children.
Macro definitions for logging messages with varying levels of detail and formatting.
This is the file in charge of containing the Log class (the one in charge of outputing info only when...
Component(const std::uint32_t entity_id=0)
Definition Component.hpp:27
virtual std::uint32_t getComponentId() const
Definition Component.cpp:16
virtual ~Component()=default
std::uint32_t _entity_id
Definition Component.hpp:32