#include "game/entities/concrete/torch.hpp" #include #include "game/entities/entity_factory.hpp" Torch::Torch(const fkyaml::node& yaml) { name_ = yaml.contains("name") ? yaml["name"].get_value() : std::string("torch"); collides_ = false; interactable_ = false; anim_ = AnimationComponent::fromYaml(yaml, "idle"); } REGISTER_ENTITY("torch", Torch)