#include "json.hpp" #include "feature.h" #include "spellcasting.h" #include "utils.h" #include #include using namespace std; typedef nlohmann::json json; namespace entry { shared_ptr Feature::create(const json& data) { if(data["type"] == "spellcasting") { return utils::loadDFromJson(data); } return shared_ptr(new Feature(data)); } }