aboutsummaryrefslogtreecommitdiff
path: root/src/feature.cc
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-05-01 15:10:54 -0400
committerYour Name <you@example.com>2021-05-01 15:10:54 -0400
commit7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d (patch)
treed9b808542216f71dbab053ad23145903e96c6401 /src/feature.cc
parent5a813a75412ac9b8fadb90c9abd46dd95aee8e9b (diff)
downloaddmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.tar.gz
dmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.tar.bz2
dmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.zip
Added bash completion, amongst others
Diffstat (limited to 'src/feature.cc')
-rw-r--r--src/feature.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature.cc b/src/feature.cc
index 4972ccc..1f83402 100644
--- a/src/feature.cc
+++ b/src/feature.cc
@@ -1,6 +1,7 @@
#include "json.hpp"
#include "feature.h"
#include "spellcasting.h"
+#include "attack.h"
#include "utils.h"
#include <sstream>
#include <map>
@@ -12,6 +13,8 @@ namespace entry {
shared_ptr<Feature> Feature::create(const json& data) {
if(data["type"] == "spellcasting") {
return utils::loadDFromJson<Feature, Spellcasting>(data);
+ } else if(data["type"] == "attack") {
+ return utils::loadDFromJson<Feature, Attack>(data);
}
return shared_ptr<Feature>(new Feature(data));
}