Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarCodex.hpp
blob: 57d4404de7f21274705d5566212a08315a7dabf3 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once

#include "StarJson.hpp"

namespace Star {

STAR_CLASS(Codex);

class Codex {
public:
  Codex(Json const& config, String const& path);
  Json toJson() const;

  String id() const;
  String species() const;
  String title() const;
  String description() const;
  String icon() const;
  String page(size_t pageNum) const;
  List<String> pages() const;
  size_t pageCount() const;
  Json itemConfig() const;
  String directory() const;
  String filename() const;

private:
  String m_id;
  String m_species;
  String m_title;
  String m_description;
  String m_icon;
  List<String> m_pages;
  Json m_itemConfig;
  String m_directory;
  String m_filename;
};

}