Files

15 lines
389 B
C++

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