From e044fc4255aa64ef1dbc3d20ed87ed6e2f61a6bd Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 9 May 2021 19:01:59 -0400 Subject: Code refactoring --- src/feature.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/feature.cc') 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 -#include +#include +#include using namespace std; -typedef nlohmann::json json; namespace entry { - shared_ptr Feature::create(const json& data) { + shared_ptr Feature::create(const nlohmann::json& data) { if(data["type"] == "spells") { return utils::loadDFromJson(data); } else if(data["type"] == "attack") { -- cgit v1.2.3