diff options
Diffstat (limited to 'src/feature.cc')
-rw-r--r-- | src/feature.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/feature.cc b/src/feature.cc index c42aba2..941de4e 100644 --- a/src/feature.cc +++ b/src/feature.cc @@ -1,16 +1,14 @@ -#include "json.hpp" #include "feature.h" #include "spellcasting.h" #include "attack.h" #include "utils.h" -#include <sstream> -#include <map> +#include <nlohmann/json.hpp> +#include <memory> using namespace std; -typedef nlohmann::json json; namespace entry { - shared_ptr<Feature> Feature::create(const json& data) { + shared_ptr<Feature> Feature::create(const nlohmann::json& data) { if(data["type"] == "spells") { return utils::loadDFromJson<Feature, Spellcasting>(data); } else if(data["type"] == "attack") { |