aboutsummaryrefslogtreecommitdiff
path: root/src/entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entry.h')
-rw-r--r--src/entry.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/entry.h b/src/entry.h
index 56fc884..9e00798 100644
--- a/src/entry.h
+++ b/src/entry.h
@@ -10,6 +10,9 @@ namespace creature {
namespace entry {
class Entry {
public:
+ Entry() {}
+ // Also can be created programmatically
+ Entry(const std::string& entry, const std::string& name, const std::string& type, const std::string& text) : entry(entry), name(name), type(type), text(text) {}
static std::shared_ptr<Entry> create(const nlohmann::json& data);
virtual ~Entry() {}