aboutsummaryrefslogtreecommitdiff
path: root/src/feature.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/feature.cc')
-rw-r--r--src/feature.cc19
1 files changed, 0 insertions, 19 deletions
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 <nlohmann/json.hpp>
-#include <memory>
-
-using namespace std;
-
-namespace entry {
- shared_ptr<Feature> Feature::create(const nlohmann::json& data) {
- if(data["type"] == "spells") {
- return utils::loadDFromJson<Feature, Spellcasting>(data);
- } else if(data["type"] == "attack") {
- return utils::loadDFromJson<Feature, Attack>(data);
- }
- return shared_ptr<Feature>(new Feature(data));
- }
-}