blob: b0b06afdbb13974e3f7317da9bc696d68d838a65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include "json.hpp"
#include "entry.h"
#include <memory>
namespace entry {
class Item : public Entry {
public:
static std::shared_ptr<Item> create(const nlohmann::json& data);
virtual ~Item() {}
protected:
Item(const nlohmann::json& data) : Entry(data) {}
};
class Substantial {
public:
virtual int getCost(void) const = 0;
virtual double getWeight(void) const = 0;
virtual ~Substantial() {}
};
std::string genText(const Substantial& s);
}
|