diff --git a/Flakkari/Engine/EntityComponentSystem/Components/Common/Template.hpp b/Flakkari/Engine/EntityComponentSystem/Components/Common/Template.hpp index 9cff97b1..a6ef316d 100644 --- a/Flakkari/Engine/EntityComponentSystem/Components/Common/Template.hpp +++ b/Flakkari/Engine/EntityComponentSystem/Components/Common/Template.hpp @@ -10,21 +10,26 @@ #ifndef FLAKKARI_TEMPLATE_HPP_ #define FLAKKARI_TEMPLATE_HPP_ +#include #include namespace Flakkari::Engine::ECS::Components::Common { struct Template { std::string name; + nlohmann::json content; - Template() : name("") {} - Template(const std::string &nname) : name(nname) {} - Template(const Template &other) : name(other.name) {} + Template() : name(""), content(nlohmann::json::object()) {} + Template(const std::string &name, const nlohmann::json &content) : name(name), content(content) {} + Template(const Template &other) : name(other.name), content(other.content) {} Template &operator=(const Template &other) { if (this != &other) + { name = other.name; + content = other.content; + } return *this; }