-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Common): Add Tag component to ECS
- Loading branch information
1 parent
9a402a7
commit f9405c9
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
Flakkari/Engine/EntityComponentSystem/Components/Common/Tag.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
** EPITECH PROJECT, 2024 | ||
** Title: Flakkari | ||
** Author: MasterLaplace | ||
** Created: 2023-01-06 | ||
** File description: | ||
** Tag | ||
*/ | ||
|
||
#ifndef TAG_HPP_ | ||
#define TAG_HPP_ | ||
|
||
#include <string> | ||
|
||
namespace Flakkari::Engine::ECS::Components::Common { | ||
|
||
/** | ||
* @brief Tag component for ECS entities that have a script attached to them | ||
* | ||
* @details This component is used to store the path to the script that will be executed | ||
*/ | ||
struct Tag { | ||
std::string tag; | ||
|
||
Tag() : tag("") {} | ||
Tag(const std::string &tag) : tag(tag) {} | ||
Tag(const Tag &other) : tag(other.tag) {} | ||
}; | ||
|
||
} // namespace Game::ECS::Components::Common | ||
|
||
#endif /* !TAG_HPP_ */ |