From d0e356d09e30a11c1e072415a5088f829d5c0a04 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 16 Jan 2022 21:32:01 -0500 Subject: Worked on features --- src/feature.cc | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 src/feature.cc (limited to 'src/feature.cc') diff --git a/src/feature.cc b/src/feature.cc deleted file mode 100644 index 941de4e..0000000 --- a/src/feature.cc +++ /dev/null @@ -1,19 +0,0 @@ -#include "feature.h" -#include "spellcasting.h" -#include "attack.h" -#include "utils.h" -#include -#include - -using namespace std; - -namespace entry { - shared_ptr Feature::create(const nlohmann::json& data) { - if(data["type"] == "spells") { - return utils::loadDFromJson(data); - } else if(data["type"] == "attack") { - return utils::loadDFromJson(data); - } - return shared_ptr(new Feature(data)); - } -} -- cgit v1.2.3