diff options
Diffstat (limited to 'src/feature.cc')
-rw-r--r-- | src/feature.cc | 3 |
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)); } |