Skip to content

Commit

Permalink
feat(Common): Add Tag component to ECS
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterLaplace committed Jan 8, 2024
1 parent 9a402a7 commit f9405c9
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Flakkari/Engine/EntityComponentSystem/Components/Common/Tag.hpp
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_ */

0 comments on commit f9405c9

Please sign in to comment.